mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-02 18:30:22 +00:00
Merge pull request #8525 from bluelovers/pr/sort-001
feat: try sort as ignore-case
This commit is contained in:
@@ -347,7 +347,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
|
||||
|
||||
|
Reference in New Issue
Block a user