Guest User

Untitled

a guest
Jan 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"id" ascending:YES];
  2. NSArray *sortDescriptorsArray = [NSArray arrayWithObject:sortDescriptor];
  3. NSArray *sortedStudentsArray = [studentsArray sortedArrayUsingDescriptors:sortDescriptorsArray];
  4. [sortDescriptor release];
  5. // Release the sortedStudentsArray...
Add Comment
Please, Sign In to add comment