diff --git a/packages/v3/src/esp-entity-table.ts b/packages/v3/src/esp-entity-table.ts index 4bc224b..42eb5d7 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.toLowerCase() < b.name.toLowerCase() + ? -1 + : 1 + : sortA < sortB + ? -1 + : 1 : 1 }); this.requestUpdate();