RosettaCodeData/Task/Sort-an-integer-array/Objective-C/sort-an-integer-array.m

3 lines
110 B
Mathematica
Raw Permalink Normal View History

2014-04-02 16:56:35 +00:00
NSArray *nums = @[@2, @4, @3, @1, @2];
NSArray *sorted = [nums sortedArrayUsingSelector:@selector(compare:)];