mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +00:00
Sort groups by order
This commit is contained in:
parent
66a7e370d4
commit
68873a676e
@ -27,7 +27,8 @@ function getPriority(domain) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function entitySortBy(entity) {
|
function entitySortBy(entity) {
|
||||||
return entity.entityDisplay.toLowerCase();
|
return entity.domain === 'group' ? entity.attributes.order :
|
||||||
|
entity.entityDisplay.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
export default new Polymer({
|
export default new Polymer({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user