views:

48

answers:

1

Is it possible to order an NSMutableArray where it's values are NSStrings? I'm looking to order alphabetically. Thanks

+3  A: 

This should work:

NSMutableArray* stringsArray;
...
[stringsArray sortUsingSelector:@selector(compare:)];
Vladimir
Thanks! Works great.
ing0
Or `caseInsensitiveCompare:` if you want to ignore case.
Perspx