Skip to content
Snippets Groups Projects
Commit 0f0f74c2 authored by Julian's avatar Julian
Browse files

Sort icon choices alphabetically

parent e89ca7f0
No related branches found
No related tags found
1 merge request!6Resolve "Export django model choices for icons"
...@@ -45,4 +45,4 @@ def icon_choices(collection: str) -> list[tuple[str, str]]: ...@@ -45,4 +45,4 @@ def icon_choices(collection: str) -> list[tuple[str, str]]:
collection_file = os.path.join(JSON_ROOT, "json", f"{collection}.json") collection_file = os.path.join(JSON_ROOT, "json", f"{collection}.json")
icon_set = IconifyJSON.from_file(collection_file) icon_set = IconifyJSON.from_file(collection_file)
return [(name, name) for name in icon_set.icons.keys()] return [(name, name) for name in sorted(icon_set.icons.keys())]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment