Skip to content

Instantly share code, notes, and snippets.

@veader
Created April 29, 2010 15:37
Show Gist options
  • Save veader/383783 to your computer and use it in GitHub Desktop.
Save veader/383783 to your computer and use it in GitHub Desktop.
NSSortDescriptor *sortByDate = [[NSSortDescriptor alloc] initWithKey:@"self" ascending:NO];
NSArray *sortingDescriptors = [NSArray arrayWithObject:sortByDate];
[sortByDate release];
// sort array and save for later
alertDates = [[tempDates sortedArrayUsingDescriptors:sortingDescriptors] retain];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment