Implement -sortedArrayUsingDescriptors: for CPSet.

This commit is contained in:
Ilya Kulakov committed 2012-03-20 03:43:49 +07:00
1 parent 3b85a67faf
commit 91eb23ba87
1 file changed
+9
+9
View File
@@ -380,6 +380,15 @@
return NO;
}
/*!
Returns an array of the set’s content sorted as specified by a given array of sort descriptors.
@param sortDescriptors An array of NSSortDescriptor objects.
*/
- (CPArray)sortedArrayUsingDescriptors:(CPArray)aSortDescriptors
{
return [[self allObjects] sortedArrayUsingDescriptors:aSortDescriptors];
}
/*!
Compares the receiver to another set.
@param set The set with which to compare the receiver.