Possible Duplicate:
How to sort a NSArray alphabetically?
Hi all, I have an array which consist of companies name. I want to sort array alphabetically so that companies name come in alphabetic order. Please suggest me how to do this. Thanks in advance
[myArray sortUsingSelector:@selector(caseInsensitiveCompare:)];
NSArray *sortedStrings = [strings sortedArrayUsingSelector:@selector(compare:)];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With