From 651c7313a70ca2f794cf07d59344a4147ce4755d Mon Sep 17 00:00:00 2001 From: Christoph Giesche Date: Mon, 16 May 2022 15:12:12 +0200 Subject: [PATCH] streamdeck-homeassistant-85 Fixed incorrect sorting for entities --- src/Pi.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Pi.vue b/src/Pi.vue index 34ca44c..00c0e09 100644 --- a/src/Pi.vue +++ b/src/Pi.vue @@ -58,7 +58,7 @@ description="The id of the entity you want to configure"> + text-field="text"> (a.text > b.text) ? 1 : ((b.text > a.text) ? -1 : 0)) + .sort((a, b) => (a.text.toLowerCase() > b.text.toLowerCase()) ? 1 : ((b.text.toLowerCase() > a.text.toLowerCase()) ? -1 : 0)) this.currentStates = states .map((state) => {