From 0f0f74c23d03435ba13bae95a3b0a56ff6c70dfe Mon Sep 17 00:00:00 2001 From: Julian Leucker <leuckerj@gmail.com> Date: Wed, 22 Jun 2022 18:06:59 +0200 Subject: [PATCH] Sort icon choices alphabetically --- dj_iconify/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dj_iconify/util.py b/dj_iconify/util.py index 29d0ff1..10dcb43 100644 --- a/dj_iconify/util.py +++ b/dj_iconify/util.py @@ -45,4 +45,4 @@ def icon_choices(collection: str) -> list[tuple[str, str]]: collection_file = os.path.join(JSON_ROOT, "json", f"{collection}.json") 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())] -- GitLab