Fixes #3204 - Limit Groups in Notification settings should be in alphabetical order.

This commit is contained in:
Rolf Schmidt 2020-10-28 15:49:54 +01:00 committed by Thorsten Eckel
parent 360ab528e4
commit fc987d7bcb

View file

@ -83,6 +83,8 @@ class Index extends App.ControllerSubContent
config['group_ids'] = [] config['group_ids'] = []
config['group_ids'].push group_id.toString() config['group_ids'].push group_id.toString()
groups = _.sortBy(groups, (item) -> return item.name)
for sound in @sounds for sound in @sounds
sound.selected = sound.file is App.OnlineNotification.soundFile() ? true : false sound.selected = sound.file is App.OnlineNotification.soundFile() ? true : false