Merge pull request 'Set default sort on teams' (#7) from fix/team-default-sort into main
All checks were successful
Build Docker Image / build (push) Successful in 1m9s

Reviewed-on: #7
This commit is contained in:
cal 2026-02-06 03:00:47 +00:00
commit 8feed5b104

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]