RosettaCodeData/Task/Sort-an-integer-array/Objective-C/sort-an-integer-array.m
2014-04-02 16:56:35 +00:00

2 lines
110 B
Objective-C

NSArray *nums = @[@2, @4, @3, @1, @2];
NSArray *sorted = [nums sortedArrayUsingSelector:@selector(compare:)];