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]];


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.