Instance Property

ascending

A Boolean value that indicates whether the receiver specifies sorting in ascending order.

Declaration

var ascending: Bool { get }

Discussion

true if the receiver specifies sorting in ascending order, otherwise false.

See Also

Getting Information About a Sort Descriptor

var key: String?

The key that specifies the property to be compared during sorting.

var keyPath: AnyKeyPath?

The key path that specifies the property to be compared during sorting.

var selector: Selector?

The selector used when comparing objects.

var comparator: Comparator

The comparator for the sort descriptor.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software