deterministic sort order
This commit is contained in:
parent
230d96ae1b
commit
f5d3cfdad4
1 changed files with 2 additions and 1 deletions
|
@ -106,7 +106,8 @@ def get_stat_lists(stat_type: str, order_type: str = 'DESC', precision: int = 0,
|
|||
" ON users.id = user_accounts.user_id "
|
||||
f" GROUP BY (user_accounts.user_id, player_name, {stat_type}) "
|
||||
" ) AS streaks "
|
||||
f"ORDER BY value {order_type}",
|
||||
# As a tiebreak, just sort by player name for now for determinancy
|
||||
f"ORDER BY value {order_type}, player_name",
|
||||
(", ", default, rating_type)
|
||||
)
|
||||
for (player_name, user_accounts, value) in cur.fetchall():
|
||||
|
|
Loading…
Reference in a new issue