Sorting an array of NSNumber elements in Objective-C is fairly straight forward:
NSArray *unsortedArray = @[@(9), @(5), @(1), @(2), @(4)];
NSArray *sortedArray = [unsortedArray sortedArrayUsingSelector:@selector(compare:)];
NSLog(@"sortedArray: %@", sortedArray);
But what happens if we