From 58a48bf19717d76904e21299cb6b5f32a41a4b33 Mon Sep 17 00:00:00 2001 From: blessedcoolant <54517381+blessedcoolant@users.noreply.github.com> Date: Sat, 12 Aug 2023 04:47:15 +1200 Subject: [PATCH] fix: LoRA list name sorting --- .../web/src/features/lora/components/ParamLoraSelect.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/invokeai/frontend/web/src/features/lora/components/ParamLoraSelect.tsx b/invokeai/frontend/web/src/features/lora/components/ParamLoraSelect.tsx index 951037f9e3..2046d36ab2 100644 --- a/invokeai/frontend/web/src/features/lora/components/ParamLoraSelect.tsx +++ b/invokeai/frontend/web/src/features/lora/components/ParamLoraSelect.tsx @@ -54,6 +54,8 @@ const ParamLoRASelect = () => { }); }); + data.sort((a, b) => (a.label && !b.label ? 1 : -1)); + return data.sort((a, b) => (a.disabled && !b.disabled ? 1 : -1)); }, [loras, loraModels, currentMainModel?.base_model]);