Skip to content

Commit

Permalink
feat: sort registered toolbar config options by name
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantsan committed Nov 12, 2024
1 parent dfc3dd9 commit 838b5d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ckanext/ap_main/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ def get_config_sections() -> list[SectionConfig]:
)
config_sections[section["name"]]["configs"].extend(section["configs"])

return list(config_sections.values())
sections = list(config_sections.values())
sections.sort(key=lambda x: x["name"])

return sections


@helper
Expand Down

0 comments on commit 838b5d8

Please sign in to comment.