Skip to content

Commit

Permalink
Webhost: Sort Slot array in room API responses
Browse files Browse the repository at this point in the history
  • Loading branch information
silasary committed Dec 1, 2024
1 parent ecc3094 commit 49425f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebHostLib/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


def get_players(seed: Seed) -> List[Tuple[str, str]]:
return [(slot.player_name, slot.game) for slot in seed.slots]
return [(slot.player_name, slot.game) for slot in sorted(seed.slots)]


from . import datapackage, generate, room, user # trigger registration

0 comments on commit 49425f7

Please sign in to comment.