Ranking? (using assoc array / objects?)

5 players are awarded points:

“player 1” => 500
“player 2” => 400
“player 3” => 600
“player 4” => 100
“player 5” => 400

The players should now be ranked according to the points they were awarded:

“rank 1” => “player 3”
“rank 2” => “player 1”
“rank 3” => “player 2”

etc …