FIX: sort theme by lower case theme name

This commit is contained in:
Sam 2017-04-18 15:43:38 -04:00
parent 8ffb918824
commit bbeb69ddc9

View File

@ -4,7 +4,7 @@ export default Ember.Controller.extend({
@computed('model', 'model.@each')
sortedThemes(themes) {
return _.sortBy(themes.content, t => {
return [!t.get("default"), !t.get("user_selectable"), t.get("name")];
return [!t.get("default"), !t.get("user_selectable"), t.get("name").toLowerCase()];
});
}
});