Instance Method

sortWithOptions:usingComparator:

Sorts the receiver in ascending order using the specified options and the comparison method specified by a given NSComparator block.

Declaration

- (void)sortWithOptions:(NSSortOptions)opts usingComparator:(NSComparator)cmptr;

Parameters

opts

A bitmask that specifies the options for the sort (whether it should be performed concurrently and whether it should be performed stably).

cmptr

A comparator block.

See Also

Rearranging Content

- exchangeObjectAtIndex:withObjectAtIndex:

Exchanges the objects in the array at given indexes.

- sortUsingDescriptors:

Sorts the receiver using a given array of sort descriptors.

- sortUsingComparator:

Sorts the receiver in ascending order using the comparison method specified by a given NSComparator block.

- sortUsingFunction:context:

Sorts the receiver in ascending order as defined by the comparison function compare.

- sortUsingSelector:

Sorts the receiver in ascending order, as determined by the comparison method specified by a given selector.