diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-03-27 07:34:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 07:34:18 +0300 |
commit | c5e1efb4ca7617f7cb4a687abd888fa48cba733f (patch) | |
tree | fd96eec9a687a87e2215401cda6978706375cde4 /extensions-builtin | |
parent | b40538a7fe2ee6914b3121f252f0d5dc9f7e8fab (diff) | |
parent | d64ff4248bab7fd4f5908f482e4ea2fa22f671ea (diff) |
Merge pull request #8525 from bluelovers/pr/sort-001
feat: try sort as ignore-case
Diffstat (limited to 'extensions-builtin')
-rw-r--r-- | extensions-builtin/Lora/lora.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions-builtin/Lora/lora.py b/extensions-builtin/Lora/lora.py index 696be8ea..d3eb0d3b 100644 --- a/extensions-builtin/Lora/lora.py +++ b/extensions-builtin/Lora/lora.py @@ -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
|