Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

shtuceron

macrumors newbie
Original poster
Dec 22, 2009
16
0
Hello

I am trying to get locale code ordering by name (alphabet sorting). I use construction of this:

Code:
NSArray *availableLocaleIdentifiers = [NSLocale preferredLanguages];
    
for (int i = 0; i < [availableLocaleIdentifiers count]; i++)
{
    NSLog(@"%@\n", [availableLocaleIdentifiers objectAtIndex:i]);
}

and I have this result:

en
ja
de
fr
nl
it
es
...

How can I get this result but sorted in alphabet order?

Thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.