mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +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) {
|
||||
return entity.entityDisplay.toLowerCase();
|
||||
return entity.domain === 'group' ? entity.attributes.order :
|
||||
entity.entityDisplay.toLowerCase();
|
||||
}
|
||||
|
||||
export default new Polymer({
|
||||
|
Loading…
x
Reference in New Issue
Block a user