Created
October 23, 2013 22:35
-
-
Save kentcdodds/7128046 to your computer and use it in GitHub Desktop.
Sorting Rook Cards. Because you need to do this all day long.
This file contains hidden or 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 *)sortCards:(NSMutableArray *)cards { | |
SEL selector = @selector(compareCard:); | |
NSArray *sortedArray = [cards sortedArrayUsingSelector:selector]; | |
return [sortedArray mutableCopy]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment