Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given selector.
Original signature is '- (NSArray *)sortedArrayUsingSelector:(SEL)comparator'
Available in Mac OS X v10.0 and later.


- comparator (IntPtr)
- A selector that identifies the method to use to compare two elements at a time. The method should return NSOrderedAscending if the receiving array is smaller than the argument, NSOrderedDescending if the receiving array is larger than the argument, and NSOrderedSame if they are equal.

An array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by the selector comparator.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)