0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Sorts PSM authors alphabetically

fixes #4198
This commit is contained in:
Connor Tumbleson 2014-09-27 09:39:27 -05:00
parent 14821a7426
commit 3ffdd7e9ab

View file

@ -54,7 +54,7 @@ var PostSettingsMenuController = Ember.ObjectController.extend({
var deferred = {};
deferred.promise = this.store.find('user', {limit: 'all'}).then(function (users) {
return users.rejectBy('id', 'me');
return users.rejectBy('id', 'me').sortBy('name');
}).then(function (users) {
return users.filter(function (user) {
return user.get('active');