Skip to content

Instantly share code, notes, and snippets.

@jessesquires
Last active August 29, 2015 14:02
Show Gist options
  • Save jessesquires/06b6bd68a7d18810651f to your computer and use it in GitHub Desktop.
Save jessesquires/06b6bd68a7d18810651f to your computer and use it in GitHub Desktop.
sorts
// Swift
arr.sort({ $0 < $1 })
// Objective-C
[arr sortUsingComparator:^NSComparisonResult(NSNumber *n1, NSNumber *n2) {
return [n1 compare:n2];
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment