March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
|
|
@ -0,0 +1,2 @@
|
|||
sort([5,7,8,3,6,1]);
|
||||
sort(Array([5,7,8,3,6,1]))
|
||||
|
|
@ -1,12 +1,2 @@
|
|||
- (void)example
|
||||
{
|
||||
NSArray *nums, *sorted;
|
||||
nums = [NSArray arrayWithObjects:
|
||||
[NSNumber numberWithInt:2],
|
||||
[NSNumber numberWithInt:4],
|
||||
[NSNumber numberWithInt:3],
|
||||
[NSNumber numberWithInt:1],
|
||||
[NSNumber numberWithInt:2],
|
||||
nil];
|
||||
sorted = [nums sortedArrayUsingSelector:@selector(compare:)];
|
||||
}
|
||||
NSArray *nums = @[@2, @4, @3, @1, @2];
|
||||
NSArray *sorted = [nums sortedArrayUsingSelector:@selector(compare:)];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue