# Leaderboard first place and ties

**URL:** <https://forum.heroiclabs.com/t/leaderboard-first-place-and-ties/5532>\
**Category:** Client Libraries\
**Created:** [July 31, 2024, 11:25am UTC](https://forum.heroiclabs.com/t/leaderboard-first-place-and-ties/5532 "2024-07-31T11:25:06Z")\
**Posts on this page:** 5\
**Page:** 1

<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:** [July 31, 2024, 11:25am UTC](https://forum.heroiclabs.com/t/leaderboard-first-place-and-ties/5532/1 "2024-07-31T11:25:06Z")

</div>

Here is the situation with our leaderboard.  
User A scores 50 points and is first on the leaderboard rank.  
Later user B scores 50 points, and from now on he is the first on the leaderboard.  
Is it possible to change that behavior? That new leader, needs to gain more than the previous leader on leaderboard.

---

<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:** [August 1, 2024, 12:54pm UTC](https://forum.heroiclabs.com/t/leaderboard-first-place-and-ties/5532/2 "2024-08-01T12:54:12Z")

</div>

Hello @jaggred, you can use the subscore to untie, if the leaderboard is ascending, just use a unix timestamp for the subscore, if it’s descending you can use something like:

```auto
9999999999 - <unix timestamp>

```

Hope this helps.

---

<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:50am UTC](https://forum.heroiclabs.com/t/leaderboard-first-place-and-ties/5532/3 "2024-08-02T07:50:54Z")

</div>

Hi @sesposito , we are doing exactly that way. However, there is a problem if the user submits a second score.  
Then the Main score is higher than the player’s previous, so it gets updated, and the subscore is lower than previous, so it does not update (in desc mode)  
In this situation we have reports of Player A submitting a 50-point score, then Player B submitting a 70-point score and getting rank 1. Finally, Player A submitted 70 point score, but since it was first on the leaderboard, his subscore is higher than player B, so it gots ranked 1.

Uff.

---

<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:** [August 2, 2024, 2:32pm UTC](https://forum.heroiclabs.com/t/leaderboard-first-place-and-ties/5532/4 "2024-08-02T14:32:24Z")

</div>

@jaggred what is the leaderboard operator for said leaderboard?

---

<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 8, 2024, 7:37am UTC](https://forum.heroiclabs.com/t/leaderboard-first-place-and-ties/5532/6 "2024-08-08T07:37:30Z")

</div>

@sesposito - The operator for this leaderboard is “Best
