Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add implementation of -sortedArrayUsingDescriptors: that was added to NSSet in OSX 10.6 #1480

Merged
merged 1 commit into from Mar 19, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions Foundation/CPSet/CPSet.j
Expand Up @@ -380,6 +380,15 @@
return NO; 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. Compares the receiver to another set.
@param set The set with which to compare the receiver. @param set The set with which to compare the receiver.
Expand Down