Set default sort on teams
Some checks failed
Build Docker Image / build (pull_request) Failing after 19s
Some checks failed
Build Docker Image / build (pull_request) Failing after 19s
This commit is contained in:
parent
70f1918484
commit
7a538d7f12
@ -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]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user