diff --git a/panels/dev-state/ha-panel-dev-state.html b/panels/dev-state/ha-panel-dev-state.html index 5ec0f98928..604981272a 100644 --- a/panels/dev-state/ha-panel-dev-state.html +++ b/panels/dev-state/ha-panel-dev-state.html @@ -172,7 +172,7 @@ Polymer({ if (entityA.entity_id < entityB.entity_id) { return -1; } - if (entityB.entity_id > entityA.entity_id) { + if (entityA.entity_id > entityB.entity_id) { return 1; } return 0; diff --git a/src/components/ha-cards.html b/src/components/ha-cards.html index a55fabbfd6..2e5d589b28 100644 --- a/src/components/ha-cards.html +++ b/src/components/ha-cards.html @@ -125,7 +125,7 @@ if (nameA < nameB) { return -1; } - if (nameB > nameA) { + if (nameA > nameB) { return 1; } return 0; diff --git a/src/components/ha-sidebar.html b/src/components/ha-sidebar.html index 870ebb9355..f25a3cecd9 100644 --- a/src/components/ha-sidebar.html +++ b/src/components/ha-sidebar.html @@ -222,12 +222,12 @@ Polymer({ return 1; } // both not built in, sort by title - if (a.title > b.title) { - return 1; - } if (a.title < b.title) { return -1; } + if (a.title > b.title) { + return 1; + } return 0; });