Constants that indicate sort order.


enum ComparisonResult : Int


These constants are used to indicate how items in a request are ordered, from the first one given in a method invocation or function call to the last (that is, left to right in code).



case orderedAscending

The left operand is smaller than the right operand.

case orderedSame

The two operands are equal.

case orderedDescending

The left operand is greater than the right operand.

See Also


class NSSortDescriptor

An immutable description of how to order a collection of objects based on a property common to all the 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