From cf83728828237d62c122ba856db1abcc34cdad1f Mon Sep 17 00:00:00 2001 From: mozman Date: Tue, 26 Sep 2023 09:09:48 +0200 Subject: [PATCH] sort styles by name alphabetically --- scripts/StyleSelectorXL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/StyleSelectorXL.py b/scripts/StyleSelectorXL.py index 92186e4..e8c77a9 100644 --- a/scripts/StyleSelectorXL.py +++ b/scripts/StyleSelectorXL.py @@ -34,7 +34,7 @@ def read_sdxl_styles(json_data): if 'name' in item: # Append the value of 'name' to the names list names.append(item['name']) - + names.sort() return names