Initializer

init(_:order:)

Creates a sort descriptor using a key path to a double.

Declaration 宣言

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

Parameters パラメータ

keyPath

A key path to a double.

order

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

See Also 参照

Creating Sort Descriptors