Skip to content

Commit

Permalink
Merge pull request #100 from cgiesche/streamdeck-homeassistant-85
Browse files Browse the repository at this point in the history
Fixed #85 Incorrect sorting for entities
  • Loading branch information
cgiesche committed May 31, 2022
2 parents db1220d + 651c731 commit b259e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
description="The id of the entity you want to configure">
<b-form-select size="sm" id="entity" v-on:change="service = null" v-model="entity" :options="domainEntities"
value-field="value.entityId"
text-field="value.name"></b-form-select>
text-field="text"></b-form-select>
</b-form-group>

<b-form-group
Expand Down Expand Up @@ -374,7 +374,7 @@ export default {
}
}
)
.sort((a, b) => (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) => {
Expand Down

0 comments on commit b259e90

Please sign in to comment.