I’m working on a cafe type game right now, and I would like to sort the players in the leaderboard from greatest to least, based on the amount of worker points they have. By default, the player list is sorted alphabetically based on player names, and I’m not sure how to change how it is sorted.
The only solution I can think of would be to create a custom leaderboard, which I really don’t think is the best way and would waste a lot of development resources. Jailbreak for example sorts players based on their points, greatest to least, and they use the leaderboard provided by CoreGUI
Apologies if this has been answered before, I’ve tried searching for this, but I haven’t found any clear answer on how to do this
Trade hangout is another example, where rap is sorted greatest to least:
If there are no leaderstats, the list will be sorted by name. If you have leaderstats with one value, the list will be sorted by the value (greatest to least). If you have leaderstats with multiple values, the list will be sorted based on the first value (greatest to least).
Yes, that was the problem! I have 2 values, a StringValue for the rank in the group, and an IntValue for the amount of points a user has. I had the rank value before the points value, so the leaderboard was sorting by the rank. I have fixed this by putting the points value before the rank value, that way the the list will be sorted by the points.