Install Theme

Your web-browser is very outdated, and as such, this website may not display properly. Please consider upgrading to a modern, faster and more secure browser. Click here to do so.

Hexa's Developments

Feb 16 '12

Sorting an NSDictionary Key inside an NSMutableArray

    NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey:@”CountryName”  ascending:YES];
    [dataArray sortUsingDescriptors:[NSArray arrayWithObjects:descriptor,nil]];
    dataArray = [dataArray copy];

Tags: sorting xcode cocoa nsdictionary nsarray