Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given NSComparator Block.
Original signature is '- (NSArray *)sortedArrayWithOptions:(NSSortOptions)opts usingComparator:(NSComparator)cmptr'
Available in Mac OS X v10.6 and later.

C# | Visual Basic | Visual C++ |
public virtual NSArray SortedArrayWithOptionsUsingComparator( NSSortOptions opts, Func<Id, Id, NSComparisonResult> cmptr )
Public Overridable Function SortedArrayWithOptionsUsingComparator ( _ opts As NSSortOptions, _ cmptr As Func(Of Id, Id, NSComparisonResult) _ ) As NSArray
public: virtual NSArray^ SortedArrayWithOptionsUsingComparator( NSSortOptions opts, Func<Id^, Id^, NSComparisonResult>^ cmptr )

- opts (NSSortOptions)
- A bitmask that specifies the options for the sort (whether it should be performed concurrently and whether it should be performed stably).
- cmptr (Func<(Of <(<'Id, Id, NSComparisonResult>)>)>)
- A comparator block.

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

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