-2

Possible Duplicate:
sorting in nsmutable array

I have 2 NSMutableArray array. I have to sort it. Is there any function defined in Objective-c for direct sort.

like

NSMutableArray *sortedarray_variable= (sorting method) array_variable;

Where sorting method returns sorted array.

Community
  • 1
  • 1
Ajay_Kumar
  • 1,381
  • 10
  • 34
  • 62
  • Here's a very similar question: http://stackoverflow.com/questions/805547/how-to-sort-an-nsmutablearray-with-custom-objects-in-it – Simeon Jul 15 '11 at 11:44
  • 2
    Also, -1 for not searching. This is such a basic question that was answered dozens of times on SO and could easily be answered by reading the NSArray documentation. – DarkDust Jul 15 '11 at 11:45
  • I have to sort in ascending or descending order. – Ajay_Kumar Jul 15 '11 at 11:48

1 Answers1

2

Of course. NSArray provides several methods