# How to Create A Leaderboard

**URL:** <https://community.thunkable.com/t/how-to-create-a-leaderboard/561282>\
**Category:** Questions about Thunkable X\
**Tags:** firebase, beginner\
**Created:** [April 7, 2020, 1:02pm UTC](https://community.thunkable.com/t/how-to-create-a-leaderboard/561282 "2020-04-07T13:02:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vfeliufto](https://avatars.discourse-cdn.com/v4/letter/v/e495f1/32.png) [@vfeliufto](https://community.thunkable.com/u/vfeliufto)\
**Post date:** [April 7, 2020, 1:02pm UTC](https://community.thunkable.com/t/how-to-create-a-leaderboard/561282/1 "2020-04-07T13:02:12Z")

</div>

Hey guys,  
I hope you are doing great.

I’m creating this app about Math I was wondering if someone could show me how I would code a leaderboard. I’m already using Firebase data to create the LogIn of the user but I do not know how to attach that to the leaderboard.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [April 7, 2020, 4:23pm UTC](https://community.thunkable.com/t/how-to-create-a-leaderboard/561282/2 "2020-04-07T16:23:11Z")

</div>

Hey @vfeliufto 👋 welcome!

Are you using #thunkable-cross?

I only ask because your initial post is in #classicdiscuss.

---

<div class="post-metadata">

**Author:** ![vfeliufto](https://avatars.discourse-cdn.com/v4/letter/v/e495f1/32.png) [@vfeliufto](https://community.thunkable.com/u/vfeliufto)\
**Post date:** [April 8, 2020, 4:44pm UTC](https://community.thunkable.com/t/how-to-create-a-leaderboard/561282/3 "2020-04-08T16:44:04Z")

</div>

Hi @domhnallohanlon,

Yes, I am using #thunkable-cross I’ve changed it now sorry.

---

<div class="post-metadata">

**Author:** ![Daniel\_Coglitore](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@Daniel\_Coglitore](https://community.thunkable.com/u/Daniel_Coglitore)\
**Post date:** [April 8, 2020, 8:12pm UTC](https://community.thunkable.com/t/how-to-create-a-leaderboard/561282/4 "2020-04-08T20:12:00Z")

</div>

Can you explain us a bit more about your leaderboard, I also have a leaderboard

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [April 8, 2020, 8:26pm UTC](https://community.thunkable.com/t/how-to-create-a-leaderboard/561282/5 "2020-04-08T20:26:02Z")

</div>

I think a leader board would be great when stored like this

> CLOUD listOfScores = [{(NAME:“user1”,SCORE:123},{NAME:“user2”,score:233}]

(so a list of objects)

then,

everytime you add a new highscore, instead of just adding to a list, you compare the new object property score to the all others starting at # 1, and if it’s greater to that score insert that new object at postioin X.

when yo display the data. you display name and score next to each other in a list viewer but limit the result to the first 10 in the list

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:39am UTC](https://community.thunkable.com/t/how-to-create-a-leaderboard/561282/6 "2024-11-08T11:39:13Z")

</div>



---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [December 19, 2024, 5:01pm UTC](https://community.thunkable.com/t/how-to-create-a-leaderboard/561282/7 "2024-12-19T17:01:54Z")

</div>


