From fc987d7bcb23196af0d04a60dfde878171c781b7 Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Wed, 28 Oct 2020 15:49:54 +0100 Subject: [PATCH] Fixes #3204 - Limit Groups in Notification settings should be in alphabetical order. --- .../javascripts/app/controllers/_profile/notification.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/app/controllers/_profile/notification.coffee b/app/assets/javascripts/app/controllers/_profile/notification.coffee index e3ed09310..b0c71aa99 100644 --- a/app/assets/javascripts/app/controllers/_profile/notification.coffee +++ b/app/assets/javascripts/app/controllers/_profile/notification.coffee @@ -83,6 +83,8 @@ class Index extends App.ControllerSubContent config['group_ids'] = [] config['group_ids'].push group_id.toString() + groups = _.sortBy(groups, (item) -> return item.name) + for sound in @sounds sound.selected = sound.file is App.OnlineNotification.soundFile() ? true : false