diff --git a/invokeai/frontend/web/src/features/embedding/components/ParamEmbeddingPopover.tsx b/invokeai/frontend/web/src/features/embedding/components/ParamEmbeddingPopover.tsx index 69d079034a..4eb9a67de2 100644 --- a/invokeai/frontend/web/src/features/embedding/components/ParamEmbeddingPopover.tsx +++ b/invokeai/frontend/web/src/features/embedding/components/ParamEmbeddingPopover.tsx @@ -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)); }, [embeddingQueryData, currentMainModel?.base_model]);