To sort correctly humanitizeEntityRef needs to be in lowercase

Signed-off-by: albertojuanL <alberto.juan@lansweeper.com>
This commit is contained in:
albertojuanL
2023-02-06 19:46:51 +01:00
parent 86ee5f2ed8
commit 9d4a9598f4
@@ -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);