Skip to content

Instantly share code, notes, and snippets.

@hammerdr
Created August 13, 2010 03:45
Show Gist options
  • Select an option

  • Save hammerdr/522232 to your computer and use it in GitHub Desktop.

Select an option

Save hammerdr/522232 to your computer and use it in GitHub Desktop.
- (void)testThatCPArrayDoesSortUsingDescriptorsForStrings
{
var target = ["a", "b", "c", "d"];
[target sortUsingDescriptors:[[[CPSortDescriptor alloc] initWithKey:@"stringValue" ascending:YES]]];
CPLog.error(target);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment