I am storing data in NSMutableDictionary
To store data received by web service.
I want to display data in alpha order but as we know Dictionary store da
NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey:@"Object.Name" ascending:YES];
[items sortUsingDescriptors:[NSArray arrayWithObjects:descriptor,nil]];
Also,
NSArray *ordered = [myDictionary keysSortedByValueUsingComparator:^NSComparisonResult(id obj1, id obj2){
return [obj1.name compare:obj2.name];
}];