[
[ 'UserA', 490 ],
[ 'UserC', 175 ],
[ 'UserD', 67 ],
[ 'UserB', 26 ]
]
How would I give them a rank based on the leaderboard? eg. UserA is in the 1st Rank, UserC is in the 2nd Rank, etc.
It will look something like this:
UserA: Rank 1
UserC: Rank 2
UserD: Rank 3
UserB: Rank 4