We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12e6701 commit ad556a4Copy full SHA for ad556a4
src/data/area_registry.ts
@@ -128,7 +128,7 @@ export const areaCompare =
128
(entries?: HomeAssistant["areas"], order?: string[]) =>
129
(a: string, b: string) => {
130
const indexA = order ? order.indexOf(a) : -1;
131
- const indexB = order ? order.indexOf(b) : 1;
+ const indexB = order ? order.indexOf(b) : -1;
132
if (indexA === -1 && indexB === -1) {
133
const nameA = entries?.[a]?.name ?? a;
134
const nameB = entries?.[b]?.name ?? b;
0 commit comments