mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-18 22:58:28 +01:00
Merge branch 'develop' into prototype/Swift_3_2
This commit is contained in:
commit
fb7e2f7f7f
2 files changed
+36
No files matched your search
@@ -172,3 +172,17 @@ public struct OrderBy: FetchClause, QueryClause, DeleteClause, Hashable {
|
||||
return (self.sortDescriptors as NSArray).hashValue
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// MARK: - Sequence where Element == OrderBy
|
||||
|
||||
public extension Sequence where Iterator.Element == OrderBy {
|
||||
|
||||
/**
|
||||
Combines multiple `OrderBy` predicates together
|
||||
*/
|
||||
public func combined() -> OrderBy {
|
||||
|
||||
return OrderBy(self.flatMap({ $0.sortDescriptors }))
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user