2

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

Any help please

handiansom
  • 742
  • 11
  • 27

1 Answers1

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

array = [NSMutableArray arrayWithArray:[array sortedArrayUsingSelector: @selector(compare:)]];
[array sortedArrayUsingSelector: @selector(compare:)];
Rajat
  • 10,869
  • 2
  • 36
  • 55