Sorting a NSArray
- by Yoot
Hi,
I have a NSArray of objects.
Those objects have an int attribute called "distance". I would like to sort my array by distance.
Could someone please tell me how to do that ? I can't understand how the sortUsingSelector or sortUsingDescriptor methods are working...
Thanks