I have generated an Array of strings, each is a date from a NSDictionary (parsed from a plist file), the issue is that when creating the Array the NSDictionary has the years in a random order.
my code:
NSString *path = [[NSBundle mainBundle] pathForResource:_country ofType:@"plist"];
    NSDictionary *dict = [[NSDictionary alloc] initWithContentsOfFile:path];
    tableData = [[NSMutableArray alloc] init];
    for (id key in dict) {
        for (NSString *date in [dict objectForKey:key]){
            NSString *baseString = @"";
            baseString = [baseString stringByAppendingFormat:@"%@ %@", date, key];
            [tableData addObject:baseString];
        }
    }
So the above outputs strings like: December 05 2014
What I need is to find a way to then order this array so that the oldest date is first.
 
    