-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.

3
  • Here's a very similar question: stackoverflow.com/questions/805547/… Commented Jul 15, 2011 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. Commented Jul 15, 2011 at 11:45
  • I have to sort in ascending or descending order. Commented Jul 15, 2011 at 11:48

1 Answer 1

2

Of course. NSArray provides several methods

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.