From 9d4a9598f418f7e1108cd4f6618e63ec89f2f8a0 Mon Sep 17 00:00:00 2001 From: albertojuanL Date: Mon, 6 Feb 2023 19:46:51 +0100 Subject: [PATCH] To sort correctly humanitizeEntityRef needs to be in lowercase Signed-off-by: albertojuanL --- plugins/catalog/src/components/CatalogTable/CatalogTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx index 8cee912219..f8617ba4b2 100644 --- a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx +++ b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx @@ -68,7 +68,7 @@ const refCompare = (a: Entity, b: Entity) => { entity.metadata.title?.toLocaleLowerCase('en-US') || humanizeEntityRef(entity, { defaultKind: 'Component', - }); + }).toLocaleLowerCase('en-US'); const aRef = toRef(a); const bRef = toRef(b);