FIX: Default sort grantable badges by name

Currently has no default sort and was stated as a bug here:
  https://meta.discourse.org/t/badges-not-sorted-in-grant-badge-dropdown/23739
  (Post was recently deleted or made private?)
This commit is contained in:
Ed Gibbs
2015-02-15 17:37:11 -08:00
parent b5bcf7bf3d
commit c50205725f
2 changed files with 17 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ export default Ember.ArrayController.extend({
}
});
return badges;
return _.sortBy(badges, "name");
}.property('badges.@each', 'model.@each'),
/**