views:

4184

answers:

1

I have an array filled with [UIFont familyNames] but they aren't in alphabetical order.

How do I do this?

+16  A: 

Take a look here:

The simplest approach is, to provide a sort selector (see the link for details):

sortedArray = [anArray sortedArrayUsingSelector:@selector(localizedCaseInsensitiveCompare:)];
weichsel