Enumeration

NSComparisonResult

Constants that indicate sort order.

Declaration

typedef enum NSComparisonResult : NSInteger {
    ...
} NSComparisonResult;

Overview

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).

Topics

Constants

NSOrderedAscending

The left operand is smaller than the right operand.

NSOrderedSame

The two operands are equal.

NSOrderedDescending

The left operand is greater than the right operand.

See Also

Sorting

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