2

I wanted to sort the integer values of my NSMutableArray. I don't know to to do it.

Any help please

handiansom
  • 783
  • 11
  • 27

1 Answers1

3
NSMutableArray *array = /* loaded from file */;

array = [NSMutableArray arrayWithArray:[array sortedArrayUsingSelector: @selector(compare:)]];
[array sortedArrayUsingSelector: @selector(compare:)];
Rajat
  • 10,977
  • 3
  • 38
  • 55