NSSortDescriptor *nameSorter = [[NSSortDescriptor alloc] initWithKey:"name_key_of_map" ascending:YES selector:@selector(caseInsensitiveCompare:)]; [drinks sortUsingDescriptors:[NSArray arrayWithObject:nameSorter]]; [nameSorter release];
No comments:
Post a Comment