Merge pull request #8525 from bluelovers/pr/sort-001

feat: try sort as ignore-case
This commit is contained in:
AUTOMATIC1111
2023-03-27 07:34:18 +03:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

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