feat: try sort as ignore-case

https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/8368
This commit is contained in:
bluelovers
2023-03-12 10:18:33 +08:00
parent 0cc0ee1bcb
commit 0492424121
3 changed files with 4 additions and 4 deletions

View File

@@ -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