Set default sort on teams
Some checks failed
Build Docker Image / build (pull_request) Failing after 19s

This commit is contained in:
Cal Corum 2026-02-05 20:31:43 -06:00
parent 70f1918484
commit 7a538d7f12

View File

@ -139,6 +139,9 @@ class TeamService(BaseService):
if not cls._get_team_field(t, "abbrev", "").endswith(("IL", "MiL"))
]
# Sort by team ID ascending
teams_list.sort(key=lambda t: cls._get_team_field(t, 'id', 0))
# Convert to dicts
teams_data = [cls._team_to_dict(t, short_output) for t in teams_list]