Instance Property

comparator

The comparator for the sort descriptor.

Declaration

@property(readonly) NSComparator comparator;

Discussion

Call this property only for sort descriptors initialized with initWithKey:ascending:comparator:.

See Also

Getting Information About a Sort Descriptor

ascending

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

key

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

selector

The selector used when comparing objects.

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