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
2010-04-09 13:24:07
Thanks! Works great.
ing0
2010-04-09 13:30:26
Or `caseInsensitiveCompare:` if you want to ignore case.
Perspx
2010-04-09 15:34:59