Skip to content

Instantly share code, notes, and snippets.

@mootoh
Created August 30, 2008 22:39
Show Gist options
  • Select an option

  • Save mootoh/8148 to your computer and use it in GitHub Desktop.

Select an option

Save mootoh/8148 to your computer and use it in GitHub Desktop.
snippet for sorting array of strings.
NSMutableArray *keys = [NSMutableArray arrayWithArray:[params allKeys]];
[keys sortUsingSelector:@selector(compare:)]; // compare: is a member of NSString.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment