Implemented sorting of players.