mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -32,7 +32,7 @@ export default Ember.ArrayController.extend({
|
||||
}
|
||||
});
|
||||
|
||||
return badges;
|
||||
return _.sortBy(badges, "name");
|
||||
}.property('badges.@each', 'model.@each'),
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user