FIX: Fields should be ordered by position on preferences page

This commit is contained in:
Robin Ward 2015-08-21 12:47:16 -04:00
parent 7ffdc43091
commit 4f85420088
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
if (!this.get('currentUser.staff')) {
siteUserFields = siteUserFields.filterProperty('editable', true);
}
return siteUserFields.sortBy('field_type').map(function(field) {
return siteUserFields.sortBy('position').map(function(field) {
const value = userFields ? userFields[field.get('id').toString()] : null;
return Ember.Object.create({ value, field });
});