From 72e9de7131fa082c35ac8c7803e61367f0fc17a0 Mon Sep 17 00:00:00 2001 From: Ryan Walder Date: Wed, 26 Jun 2024 17:08:25 +0100 Subject: [PATCH] Sor model names alphabetically --- nodes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index a97b90b..5e9ed92 100644 --- a/nodes.py +++ b/nodes.py @@ -106,9 +106,11 @@ def get_restorers(): def get_model_names(get_models): models = get_models() - names = ["none"] + names = [] for x in models: names.append(os.path.basename(x)) + names.sort(key=str.lower) + names.insert(0, "none") return names def model_names():