I would like to sort a NSMutableArray.
I don’t know how to sort an object.
in ActionScript I can use the sort method like : arr.sortOn(“x”, Array.NUMERIC);
I can’t use NSSortDescriptor and the method. I can’t find an example with all sort methods.
Thanks.
For iOS4 or later, sortUsingComparator: method is easy to use. sorting CCNode with Y position.