MonobjcMonobjc Documented Class Library
SortedArrayUsingSelector Method (comparator)
NamespacesMonobjc.FoundationNSArraySortedArrayUsingSelector(IntPtr)

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.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSArray SortedArrayUsingSelector(
	IntPtr comparator
)
Public Overridable Function SortedArrayUsingSelector ( _
	comparator As IntPtr _
) As NSArray
public:
virtual NSArray^ SortedArrayUsingSelector(
	IntPtr comparator
)
Parameters
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.
Return Value
An array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by the selector comparator.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)