sort hypernetworks and checkpoints by name

This commit is contained in:
AUTOMATIC
2023-03-28 20:03:57 +03:00
parent 8c69bd08c5
commit 1b63afbedc
2 changed files with 2 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ def list_models():
elif cmd_ckpt is not None and cmd_ckpt != shared.default_sd_model_file:
print(f"Checkpoint in --ckpt argument not found (Possible it was moved to {model_path}: {cmd_ckpt}", file=sys.stderr)
for filename in model_list:
for filename in sorted(model_list, key=str.lower):
checkpoint_info = CheckpointInfo(filename)
checkpoint_info.register()