SortKey
public struct SortKey
The SortKey
is passed to the OrderBy
clause to indicate the sort keys and their sort direction.
-
Indicates that the
KeyPathString
should be sorted in ascending orderDeclaration
Swift
public static func ascending(_ keyPath: KeyPathString) -> SortKey
-
Indicates that the
KeyPathString
should be sorted in descending orderDeclaration
Swift
public static func descending(_ keyPath: KeyPathString) -> SortKey
-
Indicates that the
KeyPathString
should be sorted in ascending orderDeclaration
Swift
public static func ascending<T>(_ keyPath: KeyPath<O, T>) -> SortKey where O : NSManagedObject
-
Indicates that the
KeyPathString
should be sorted in descending orderDeclaration
Swift
public static func descending<T>(_ keyPath: KeyPath<O, T>) -> SortKey where O : NSManagedObject
-
Indicates that the
KeyPathString
should be sorted in ascending orderDeclaration
Swift
public static func ascending<T>(_ attribute: KeyPath<O, FieldContainer<O>.Stored<T>>) -> SortKey where O : CoreStoreObject, T : FieldStorableType
-
Indicates that the
KeyPathString
should be sorted in ascending orderDeclaration
Swift
public static func ascending<T>(_ attribute: KeyPath<O, ValueContainer<O>.Required<T>>) -> SortKey where O : CoreStoreObject, T : ImportableAttributeType
-
Indicates that the
KeyPathString
should be sorted in ascending orderDeclaration
Swift
public static func ascending<T>(_ attribute: KeyPath<O, ValueContainer<O>.Optional<T>>) -> SortKey where O : CoreStoreObject, T : ImportableAttributeType
-
Indicates that the
KeyPathString
should be sorted in ascending orderDeclaration
Swift
public static func ascending<T>(_ attribute: KeyPath<O, TransformableContainer<O>.Required<T>>) -> SortKey where O : CoreStoreObject, T : NSCoding, T : NSCopying
-
Indicates that the
KeyPathString
should be sorted in ascending orderDeclaration
Swift
public static func ascending<T>(_ attribute: KeyPath<O, TransformableContainer<O>.Optional<T>>) -> SortKey where O : CoreStoreObject, T : NSCoding, T : NSCopying
-
Indicates that the
KeyPathString
should be sorted in descending orderDeclaration
Swift
public static func descending<T>(_ attribute: KeyPath<O, FieldContainer<O>.Stored<T>>) -> SortKey where O : CoreStoreObject, T : FieldStorableType
-
Indicates that the
KeyPathString
should be sorted in descending orderDeclaration
Swift
public static func descending<T>(_ attribute: KeyPath<O, ValueContainer<O>.Required<T>>) -> SortKey where O : CoreStoreObject, T : ImportableAttributeType
-
Indicates that the
KeyPathString
should be sorted in descending orderDeclaration
Swift
public static func descending<T>(_ attribute: KeyPath<O, ValueContainer<O>.Optional<T>>) -> SortKey where O : CoreStoreObject, T : ImportableAttributeType
-
Indicates that the
KeyPathString
should be sorted in descending orderDeclaration
Swift
public static func descending<T>(_ attribute: KeyPath<O, TransformableContainer<O>.Required<T>>) -> SortKey where O : CoreStoreObject, T : NSCoding, T : NSCopying
-
Indicates that the
KeyPathString
should be sorted in descending orderDeclaration
Swift
public static func descending<T>(_ attribute: KeyPath<O, TransformableContainer<O>.Optional<T>>) -> SortKey where O : CoreStoreObject, T : NSCoding, T : NSCopying
-
Indicates that the
KeyPathString
should be sorted in ascending orderDeclaration
Swift
public static func ascending<K>(_ attribute: (O) -> K) -> OrderBy<O>.SortKey where K : KeyPathStringConvertible
-
Indicates that the
KeyPathString
should be sorted in descending orderDeclaration
Swift
public static func descending<K>(_ attribute: (O) -> K) -> OrderBy<O>.SortKey where K : KeyPathStringConvertible