From b1a1bc161fab1ae8db88b891026e9c3c96af615b Mon Sep 17 00:00:00 2001 From: rfdarter Date: Sat, 20 Jul 2024 01:07:02 +0200 Subject: [PATCH] init --- packages/v3/src/esp-entity-table.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/v3/src/esp-entity-table.ts b/packages/v3/src/esp-entity-table.ts index 4bc224b..e70187e 100644 --- a/packages/v3/src/esp-entity-table.ts +++ b/packages/v3/src/esp-entity-table.ts @@ -105,9 +105,13 @@ export class EntityTable extends LitElement implements RestAction { return a.entity_category < b.entity_category ? -1 : a.entity_category == b.entity_category - ? sortA < sortB - ? -1 - : 1 + ? sortA === sortB + ? a.name < b.name + ? -1 + : 1 + : sortA < sortB + ? -1 + : 1 : 1 }); this.requestUpdate();