Sort an array of NSDictionary


/ Published in: Objective C
Save to your folder(s)

Snippet from a question I answered in StackOverflow.


Copy this code and paste it in your HTML
  1. NSSortDescriptor *dateSortDescriptor = [[[NSSortDescriptor alloc] initWithKey:@"issue_id" ascending:YES selector:@selector(compare:)] autorelease];
  2. [youDictionaryArray sortUsingDescriptors:[NSArray arrayWithObjects:dateSortDescriptor, nil]];

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.