Skip to content

Instantly share code, notes, and snippets.

@josephchang10 josephchang10/sort.m
Created Jan 23, 2017

Embed
What would you like to do?
Best way to sort an NSArray of NSDictionary objects
NSSortDescriptor * descriptor = [[NSSortDescriptor alloc] initWithKey:@"interest" ascending:YES];
stories = [stories sortedArrayUsingDescriptors:@[descriptor]];
recent = [stories copy];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.