SortKey

public struct SortKey

The SortKey is passed to the OrderBy clause to indicate the sort keys and their sort direction.

Raw Key Paths

NSManagedObject Key Paths

  • Indicates that the KeyPathString should be sorted in ascending order

    Declaration

    Swift

    public static func ascending<T>(_ keyPath: KeyPath<O, T>) -> SortKey where O : NSManagedObject
  • Indicates that the KeyPathString should be sorted in descending order

    Declaration

    Swift

    public static func descending<T>(_ keyPath: KeyPath<O, T>) -> SortKey where O : NSManagedObject

CoreStoreObject Key Paths

Available where O: CoreStoreObject