What I want to do seems pretty simple, but I can\'t find any answers on the web. I have an NSMutableArray of objects, and let\'s say they are \'Person\' objects
NSMutableArray
I've used sortUsingFunction:: in some of my projects:
int SortPlays(id a, id b, void* context) { Play* p1 = a; Play* p2 = b; if (p1.scorep2.score) return NSOrderedAscending; return NSOrderedSame; } ... [validPlays sortUsingFunction:SortPlays context:nil];