Q: Sorting Array alphabetically 
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

A: NSArray *sortedStrings = [strings sortedArrayUsingSelector:@selector(compare:)];


A: If the array consists of NSStrings:
[companies sortUsingSelector:@selector(compare:)];


A: [myArray sortUsingSelector:@selector(caseInsensitiveCompare:)];

