0

I'm having a table view.The table view cells are filled with 5 different columns with 5 different array.If i sort the array in one column all other column should reorder based on the sorting.How can i do that one.

gary
  • 4,227
  • 3
  • 31
  • 58
Susee
  • 13
  • 3
  • What do you mean by columns? Can you post the code/screenshot of what you are doing? – EmptyStack Jan 06 '11 at 11:39
  • i want sort the multiple arrays based on the value in one array – Susee Jan 06 '11 at 11:46
  • What values are there in your array? – EmptyStack Jan 06 '11 at 11:52
  • Can you give more detail in your question? – EmptyStack Jan 06 '11 at 12:01
  • 1
    A comment as it doesn't actually answer the question put: the normal way to achieve this sort of thing would be to have each array entry contain the value for all five columns as a piece of compound data. Sort the one array, get the values for all five from there. You can use a custom class, an NSDictionary or even an NSValue wrapping a struct or C++ class if you're communicating with a non-Objective-C backend. – Tommy Jan 06 '11 at 12:11

1 Answers1

0

Here is the NSMutableArray doc and the method you searching for is -(void)replaceObjectAtIndex:(NSUInteger)index withObject:(id)anObject

Alex Terente
  • 12,006
  • 5
  • 51
  • 71