Sort groups by order

This commit is contained in:
Paulus Schoutsen 2016-01-24 22:30:10 -08:00
parent 66a7e370d4
commit 68873a676e

View File

@ -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({