From 639723943586b6fe86e2f3f2c2243448bd3c9f0d Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 26 May 2013 23:01:27 -0700 Subject: [PATCH] Order notifications in schema --- NzbDrone.Core/Notifications/NotificationService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NzbDrone.Core/Notifications/NotificationService.cs b/NzbDrone.Core/Notifications/NotificationService.cs index c4715e3cf..8fbab06d6 100644 --- a/NzbDrone.Core/Notifications/NotificationService.cs +++ b/NzbDrone.Core/Notifications/NotificationService.cs @@ -57,7 +57,6 @@ namespace NzbDrone.Core.Notifications int i = 1; foreach (var notification in _notifications) { - i++; var type = notification.GetType(); var newNotification = new Notification(); @@ -71,9 +70,10 @@ namespace NzbDrone.Core.Notifications newNotification.Implementation = type.Name; notifications.Add(newNotification); + i++; } - return notifications; + return notifications.OrderBy(n => n.Name).ToList(); } private Notification ToNotification(NotificationDefinition definition)