Returns an NSSortDescriptor object initialized to do with the given ordering and comparator block.
Original signature is '- (id)initWithKey:(NSString *)key ascending:(BOOL)ascending comparator:(NSComparator)cmptr'
Available in Mac OS X v10.6 and later.
Declaration Syntax
Parameters
- key (NSString)
- The property key to use when performing a comparison. In the comparison, the property is accessed using key-value coding (see Key-Value Coding Programming Guide).
- ascending (Boolean)
- YES if the receiver specifies sorting in ascending order, otherwise NO.
- cmptr (Func<(Of <(<'Id, Id, NSComparisonResult>)>)>)
- A comparator block.
Return Value
An NSSortDescriptor initialized with the specified key, ordering and comparator.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)