Skip to content

Commit b259e90

Browse files
authored
Merge pull request #100 from cgiesche/streamdeck-homeassistant-85
Fixed #85 Incorrect sorting for entities
2 parents db1220d + 651c731 commit b259e90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Pi.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
description="The id of the entity you want to configure">
5959
<b-form-select size="sm" id="entity" v-on:change="service = null" v-model="entity" :options="domainEntities"
6060
value-field="value.entityId"
61-
text-field="value.name"></b-form-select>
61+
text-field="text"></b-form-select>
6262
</b-form-group>
6363

6464
<b-form-group
@@ -374,7 +374,7 @@ export default {
374374
}
375375
}
376376
)
377-
.sort((a, b) => (a.text > b.text) ? 1 : ((b.text > a.text) ? -1 : 0))
377+
.sort((a, b) => (a.text.toLowerCase() > b.text.toLowerCase()) ? 1 : ((b.text.toLowerCase() > a.text.toLowerCase()) ? -1 : 0))
378378
379379
this.currentStates = states
380380
.map((state) => {

0 commit comments

Comments
 (0)