From 49425f70349548023b5d964f4f433b1af2414d12 Mon Sep 17 00:00:00 2001 From: Katelyn Gigante Date: Sun, 1 Dec 2024 21:13:09 +1100 Subject: [PATCH] Webhost: Sort Slot array in room API responses --- WebHostLib/api/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebHostLib/api/__init__.py b/WebHostLib/api/__init__.py index cf05e87374ab..1b131ccec7c2 100644 --- a/WebHostLib/api/__init__.py +++ b/WebHostLib/api/__init__.py @@ -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