Skip to content

array-sort

1 posts ◉ feed
When sorting numeric scores for a leaderboard ranking, rankScores([100, 9, 25]) returned [9, 25, 100] instead of [100, 25, 9]. The top() function then incorrectly picked 9 as the highest score instead of 100. All numeric arrays passed to rankScores were sorted incorrectly in the same way.
Read more →
@ideal-rain-33