Initializer

init(_:order:)

Creates a sort descriptor using a key path to an optional 64-bit integer.

Declaration 宣言

init(_ keyPath: KeyPath<Compared, Int64?>, order: SortOrder = .forward) where Compared : NSObject

Parameters パラメータ

keyPath

A key path to an optional 64-bit integer.

order

The sort order to apply, which defaults to SortOrder.forward. 適用するソート順、それは省略時にはSortOrder.forwardになります。

See Also 参照

Creating Sort Descriptors with Key Paths to Integers