# Ranking? (using assoc array / objects?)

**URL:** https://forum.kirupa.com/t/ranking-using-assoc-array-objects/295516
**Category:** flash
**Created:** [August 31, 2009, 6:32pm UTC](https://forum.kirupa.com/t/ranking-using-assoc-array-objects/295516 "2009-08-31T18:32:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kalasdojan](https://avatars.discourse-cdn.com/v4/letter/k/a587f6/32.png) [@kalasdojan](https://forum.kirupa.com/u/kalasdojan)
#### Post date: [August 31, 2009, 6:32pm UTC](https://forum.kirupa.com/t/ranking-using-assoc-array-objects/295516/1 "2009-08-31T18:32:36Z")

</div>

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 …
