aboutsummaryrefslogtreecommitdiffstats
path: root/extensions-builtin/Lora/lora.py
diff options
context:
space:
mode:
authorbluelovers <codelovers@users.sourceforge.net>2023-03-12 02:18:33 +0000
committerbluelovers <codelovers@users.sourceforge.net>2023-03-12 02:18:33 +0000
commit04924241218bb51bee255bebc6c66ef1de449f4a (patch)
tree6de0b28973f9a8dd3c6c2383b17cee11d61f2092 /extensions-builtin/Lora/lora.py
parent0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8 (diff)
downloadstable-diffusion-webui-gfx803-04924241218bb51bee255bebc6c66ef1de449f4a.tar.gz
stable-diffusion-webui-gfx803-04924241218bb51bee255bebc6c66ef1de449f4a.tar.bz2
stable-diffusion-webui-gfx803-04924241218bb51bee255bebc6c66ef1de449f4a.zip
feat: try sort as ignore-case
https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/8368
Diffstat (limited to 'extensions-builtin/Lora/lora.py')
-rw-r--r--extensions-builtin/Lora/lora.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions-builtin/Lora/lora.py b/extensions-builtin/Lora/lora.py
index cb8f1d36..7d3c0f90 100644
--- a/extensions-builtin/Lora/lora.py
+++ b/extensions-builtin/Lora/lora.py
@@ -192,7 +192,7 @@ def list_available_loras():
glob.glob(os.path.join(shared.cmd_opts.lora_dir, '**/*.safetensors'), recursive=True) + \
glob.glob(os.path.join(shared.cmd_opts.lora_dir, '**/*.ckpt'), recursive=True)
- for filename in sorted(candidates):
+ for filename in sorted(candidates, key=str.lower):
if os.path.isdir(filename):
continue