Simple NSMutableArray sorting

February 16, 2011 by · Leave a Comment 

NSSortDescriptor *sortDesc = [[[NSSortDescriptor alloc] initWithKey:@"self" ascending:NO] autorelease];
[myArray sortUsingDescriptors:[NSArray arrayWithObject:sortDesc]];

About admin

Comments are closed.