mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: LoRA's not being sorted alphabetically
This commit is contained in:
parent
397604a094
commit
6fd8543e69
@ -54,7 +54,12 @@ const ParamLoRASelect = () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
return data.sort((a, b) => (a.disabled && !b.disabled ? 1 : -1));
|
// Sort Alphabetically
|
||||||
|
data.sort((a, b) =>
|
||||||
|
a.label && b.label ? (a.label?.localeCompare(b.label) ? 1 : -1) : -1
|
||||||
|
);
|
||||||
|
|
||||||
|
return data.sort((a, b) => (a.disabled && !b.disabled ? -1 : 1));
|
||||||
}, [loras, loraModels, currentMainModel?.base_model]);
|
}, [loras, loraModels, currentMainModel?.base_model]);
|
||||||
|
|
||||||
const handleChange = useCallback(
|
const handleChange = useCallback(
|
||||||
|
Loading…
Reference in New Issue
Block a user