Instance Property インスタンスプロパティ

sortDescriptors

The request’s sort descriptors, accessed as value types.

Declaration 宣言

var sortDescriptors: [SortDescriptor<Result>] { get nonmutating set }
Available when SectionIdentifier conforms to Hashable and Result inherits NSManagedObject.

Discussion 議論

Set this value to cause the associated SectionedFetchRequest to execute a fetch with a new collection of SortDescriptor instances. The order of entities stored in the results collection may change as a result. Use care to coordinate section and sort updates, as described in SectionedFetchRequest.Configuration.

If you want to use NSSortDescriptor instances, set nsSortDescriptors instead.

See Also 参照

Configuring the Associated Sectioned Fetch Request