Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"id" ascending:YES];
- NSArray *sortDescriptorsArray = [NSArray arrayWithObject:sortDescriptor];
- NSArray *sortedStudentsArray = [studentsArray sortedArrayUsingDescriptors:sortDescriptorsArray];
- [sortDescriptor release];
- // Release the sortedStudentsArray...
Add Comment
Please, Sign In to add comment