As a Roblox developer, it is currently too hard to …
As a Roblox developer, it is currently too hard to sort global leaderboards for competitive games where the top entries may have tied values. If I were to use OrderedDataStore to store player values for a leaderboard it is impossible to change the sorting behavior of two entries with equal values.
Problem
The default tiebreak behavior is to sort alphabetically based on entry key. However, for most games I think it would be more beneficial for ties to be broken based on the entries last update time.
Use Case
2 players are equal at the top of a global leaderboard, the tie should be broken based on whoever got to the top first. In this case, a tiebreak behavior based on an entry’s last update time would be needed.
If Roblox is able to address this issue, it would improve my development experience because …
Currently, the only way to achieve this behavior would be to use hacky methods or to save data to an external database.
Proposed Solution
Add the option to specify how tiebreaks are handled when getting page data for an OrderedDataStore, similar to how you can specify whether the page’s entries are ascending or not.