I made a class called Person. It looks like this
Person
-------
Name
Points
Then I created an NSMutableArray called team. It contains several of these person objects. I create several teams.
Then I created another NSMutableArray called allTeams. It holds all the team arrays.
I want to sort the allTeams array by the total number of points for each team, found by summing the points for each person in the team.
How can I do this?