Can leaderboard records with the same score share the same rank?

The rank of the same score record is different.

  1. Versions: Server version: 3.2.1+6790d453, Windows, client library dotnet
  2. Server Framework Runtime language : lua

1 Like

@ksm Nakama’s leaderboards do not allow two records to have the same rank.

If two records have the exact same score and subscore then the record submitted earliest has priority. In your case the user at rank 2 will have submitted their score before the user at rank 3.

1 Like

hey @zyro - for us its not working like that.
I’ve created 10 users, and each one submited 50 points of score in distance 1 minute, and every player got totaly random rank. With first submitter is not first.

as far as I experienced, the third ordering criteria is user_id…Idk if there’s a way to use update time as mentioned above..

@oguzK you’re correct and time is not used in the ordering at all.

Currently, the only way to untie the scores is with the subscore. There’s a trick to allow this to order the scores based on time:

  • If the leaderboard order is ascending, simply use an unix epoch with the current time as the subscore. Entries with the same score will naturally favor who achieved the score first.
  • If the leaderboard order is descending, do something like MAXINT - Current Unix Epoch in the subscore, to also favor who achieved the score first.