Created
January 6, 2011 16:29
-
-
Save mistersourcerer/768117 to your computer and use it in GitHub Desktop.
toy blocks post, Objective-C, array sort
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSMutableArray *users = [NSMutableArray arrayWithArray:usersList]; | |
NSSortDescriptor *sort = [NSSortDescriptor sortDescriptorWithKey:@"name" ascending:YES]; | |
[users sortUsingDescriptors:[NSArray arrayWithObject:sort]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment