mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: Embeddings not being sorted alphabetically
This commit is contained in:
parent
6fd8543e69
commit
9e9dce44b4
@ -57,6 +57,11 @@ const ParamEmbeddingPopover = (props: Props) => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 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));
|
return data.sort((a, b) => (a.disabled && !b.disabled ? 1 : -1));
|
||||||
}, [embeddingQueryData, currentMainModel?.base_model]);
|
}, [embeddingQueryData, currentMainModel?.base_model]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user