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

**URL:** <https://forum.heroiclabs.com/t/can-leaderboard-records-with-the-same-score-share-the-same-rank/2023>\
**Category:** Game Design\
**Created:** [October 13, 2021, 10:43am UTC](https://forum.heroiclabs.com/t/can-leaderboard-records-with-the-same-score-share-the-same-rank/2023 "2021-10-13T10:43:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksm](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@ksm](https://forum.heroiclabs.com/u/ksm)\
**Post date:** [October 13, 2021, 10:43am UTC](https://forum.heroiclabs.com/t/can-leaderboard-records-with-the-same-score-share-the-same-rank/2023/1 "2021-10-13T10:43:07Z")

</div>

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

 ![leaderboard_question](https://us1.discourse-cdn.com/flex020/uploads/heroiclabs/original/1X/b04f9a995a00b869a9bcc6315060a6474f88ac5c.png)

---

<div class="post-metadata">

**Author:** ![zyro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/zyro/32/14_2.png) [@zyro](https://forum.heroiclabs.com/u/zyro)\
**Post date:** [October 14, 2021, 11:31am UTC](https://forum.heroiclabs.com/t/can-leaderboard-records-with-the-same-score-share-the-same-rank/2023/2 "2021-10-14T11:31:32Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![jaggred](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@jaggred](https://forum.heroiclabs.com/u/jaggred)\
**Post date:** [August 2, 2024, 7:44am UTC](https://forum.heroiclabs.com/t/can-leaderboard-records-with-the-same-score-share-the-same-rank/2023/3 "2024-08-02T07:44:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![oguzK](https://avatars.discourse-cdn.com/v4/letter/o/71c47a/32.png) [@oguzK](https://forum.heroiclabs.com/u/oguzK)\
**Post date:** [March 28, 2025, 2:06pm UTC](https://forum.heroiclabs.com/t/can-leaderboard-records-with-the-same-score-share-the-same-rank/2023/4 "2025-03-28T14:06:46Z")

</div>

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..

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [March 28, 2025, 4:54pm UTC](https://forum.heroiclabs.com/t/can-leaderboard-records-with-the-same-score-share-the-same-rank/2023/5 "2025-03-28T16:54:12Z")

</div>

@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.
