WIP: broken generics

This commit is contained in:
John Estropia
2016-09-06 20:16:46 +09:00
parent b502895d63
commit 82de482191
95 changed files with 610 additions and 677 deletions
@@ -115,10 +115,10 @@ public struct OrderBy: FetchClause, QueryClause, DeleteClause, Hashable {
switch sortKey {
case .ascending(let keyPath):
return SortDescriptor(key: keyPath, ascending: true)
return NSSortDescriptor(key: keyPath, ascending: true)
case .descending(let keyPath):
return SortDescriptor(key: keyPath, ascending: false)
return NSSortDescriptor(key: keyPath, ascending: false)
}
}
)