Return to Snippet

Revision: 34922
at October 30, 2010 06:37 by rabc


Initial Code
NSSortDescriptor *sortDescriptor = [[[NSSortDescriptor alloc] initWithKey:@"sort_value" ascending:YES] autorelease];
NSArray *sortDescriptors = [NSArray arrayWithObject:sortDescriptor];
array = [NSMutableArray arrayWithArray:[array sortedArrayUsingDescriptors:sortDescriptors]];

Initial URL

                                

Initial Description

                                

Initial Title
Sort array using NSDecriptor

Initial Tags
iphone

Initial Language
Objective C