i am trying to sort a dictionary's keys. I am trying to do that using the code that is shown above but i am doing something wrong.
self.tableInfoDictionary = [responseObject objectForKey:@"Division 4 A Herrar"];
self.ranksSorted = [self.tableInfoDictionary allKeys];
NSLog(@"%@", self.ranksSorted);
self.ranksSorted = [[self.tableInfoDictionary allKeys] sortedArrayUsingSelector:@selector(localizedCaseInsensitiveCompare:)];
NSLog(@"-------------------------%@", self.ranksSorted);
the output looks like this: WHY are 10 not where they are supposed to be?
2015-04-24 19:06:24.884 GBGLiveScore[14574:418925] (
10,
2,
3,
11,
4,
5,
6,
7,
0,
8,
1,
9
)
2015-04-24 19:06:24.885 GBGLiveScore[14574:418925] -------------------------(
0,
1,
10,
11,
2,
3,
4,
5,
6,
7,
8,
9
)