diff options
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/stores/channel_store.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webapp/stores/channel_store.jsx b/webapp/stores/channel_store.jsx index c1922d3a6..30f395cc3 100644 --- a/webapp/stores/channel_store.jsx +++ b/webapp/stores/channel_store.jsx @@ -284,7 +284,12 @@ class ChannelStoreClass extends EventEmitter { getMoreChannelsList(teamId = TeamStore.getCurrentId()) { const teamChannels = this.moreChannels[teamId] || {}; - return Object.keys(teamChannels).map((cid) => teamChannels[cid]); + + if (!Utils) { + Utils = require('utils/utils.jsx'); //eslint-disable-line global-require + } + + return Object.keys(teamChannels).map((cid) => teamChannels[cid]).sort(Utils.sortByDisplayName); } storeStats(stats) { |