Here are the codes I have
and this is the results in firebase
so I have a leaderboard(made with dynamic components), the users scores will be shown there. But the scores are not in the right order (shown in the firebase above)
how can I make the total point into order(from large to small), and what is the best way to solve.
thx
Kingsley
TIMAI2
March 24, 2022, 1:28pm
3
Sort the data by total points before applying to your dynamic components / leaderboard.
1 Like
Or use..., example was provided via pm
With this extension, you can sort user score or balance information from high to low. Example Blocks: Example AIA LeaderBoard.aia (33.7 KB) Download AIX: com.ruwis.leaderboard.aix (30.4 KB) Open Source (Kotlin) package...
Reading time: 1 mins š
Likes: 17 ā¤
1 Like
ABG
March 24, 2022, 2:22pm
5
Here's how to do it in CloudDB, same idea for other tag/value databases:
This is a sample app to show how to gather a top scores list from CloudDB.
Sample output:
[Capture]
In this sample, I avoid ListViews and just use Labels to show the top 5 scores and their player names, to benefit from text alignment in Labels.
Designer:
[Designer]
The top Horizontal Arrangement has the data entry components:
A Texbox for the Player Name
A Textbox for that player's Score
A Button to enter the new player and score.
The bottom Arrangements have the Labels for the top 5 pā¦
1 Like
ya thx ABG made this topic public ...
system
Closed
April 3, 2022, 1:53pm
9
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.