Skip to content

Instantly share code, notes, and snippets.

@jessesquires jessesquires/sorts.m
Last active Aug 29, 2015

What would you like to do?
// 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
You can’t perform that action at this time.