mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Stupid sorting copy/paste bug
This commit is contained in:
parent
7a4b6f7db9
commit
94cde37aaa
@ -172,7 +172,7 @@ Polymer({
|
|||||||
if (entityA.entity_id < entityB.entity_id) {
|
if (entityA.entity_id < entityB.entity_id) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (entityB.entity_id > entityA.entity_id) {
|
if (entityA.entity_id > entityB.entity_id) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -125,7 +125,7 @@
|
|||||||
if (nameA < nameB) {
|
if (nameA < nameB) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (nameB > nameA) {
|
if (nameA > nameB) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -222,12 +222,12 @@ Polymer({
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
// both not built in, sort by title
|
// both not built in, sort by title
|
||||||
if (a.title > b.title) {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
if (a.title < b.title) {
|
if (a.title < b.title) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
if (a.title > b.title) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user