- const channelFilters = this.userChannels.map(c => {
- return {
- value: 'channel:' + c.name,
- label: c.displayName
- }
- })
+ const channelFilters = [ ...this.userChannels ]
+ .sort((a, b) => a.displayName.localeCompare(b.displayName))
+ .map(c => {
+ return {
+ value: 'channel:' + c.name,
+ label: c.displayName
+ }
+ })