MonobjcMonobjc Documented Class Library
SortedArrayWithOptionsUsingComparator Method (opts, cmptr)
NamespacesMonobjc.FoundationNSArraySortedArrayWithOptionsUsingComparator(NSSortOptions, Func<(Of <<'(Id, Id, NSComparisonResult>)>>))

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.

Declaration Syntax
C#Visual BasicVisual 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
)
Parameters
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.
Return Value
An array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified cmptr.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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