Users reported inconsistencies in how ranks are displayed on the Discourse Gamification leaderboard when scores are tied. simon_tomes and Ed_S noted that users with identical scores were shown with different ranks — for example, scores of 100, 90, 90, 70 should ideally rank as 1st, equal 2nd, equal 2nd, 4th — but instead were ranked sequentially (e.g., 1st, 2nd, 3rd, 4th). Ed_S also observed a discrepancy between the displayed rank (30) and actual position (32) due to unaccounted ties. Moin later confirmed that the issue was resolved: users with the same number of Contributions (formerly “Cheers”) are now ranked equally. selase clarified that the behavior is configurable via the “score ranking strategy” setting, which offers three options: dense_rank (default, assigns same rank to ties, next rank increments by 1), rank (same rank for ties, next rank skips tied positions), and row_number (assigns unique ranks even for ties). Moin confirmed the fix was implemented via a recent commit and marked the issue as completed.
I visited the leaderboard here on meta and it said in the blue box that my rank is 30. But in fact it is 32. There are two cases of ties in scores higher than mine and I speculate that’s the cause.
Those people are shown in the ranking at different ranks which is a second bug.
If the scores were 100, 90, 90, 70 then the corresponding people should conventionally be ranked 1st, equal 2nd, equal 2nd, 4th.
(First time I’ve even looked at the board, honest!)