Links

Quick Tip: Sort an NSArray of NSDictionaries

By Nuno Mariz, on 9 March 2011 10:03
NSSortDescriptor *sortDescriptor = [[[NSSortDescriptor alloc] initWithKey:@"someDictKey" ascending:YES] autorelease];
[mutableArrayOfDictionaries sortUsingDescriptors:[NSArray arrayWithObject:sortDescriptor]];