Return to Snippet

Revision: 30593
at August 18, 2010 00:04 by rabc


Initial Code
NSSortDescriptor *dateSortDescriptor = [[[NSSortDescriptor alloc] initWithKey:@"issue_id" ascending:YES selector:@selector(compare:)] autorelease];
[youDictionaryArray sortUsingDescriptors:[NSArray arrayWithObjects:dateSortDescriptor, nil]];

Initial URL
http://stackoverflow.com/questions/3503141/nsdictionary-filtering-and-sorting/3503217#3503217

Initial Description
Snippet from a question I answered in StackOverflow.

Initial Title
Sort an array of NSDictionary

Initial Tags
iphone

Initial Language
Objective C