Order notifications in schema

pull/4/head
Mark McDowall 12 years ago
parent 261ce772de
commit 6397239435

@ -57,7 +57,6 @@ namespace NzbDrone.Core.Notifications
int i = 1; int i = 1;
foreach (var notification in _notifications) foreach (var notification in _notifications)
{ {
i++;
var type = notification.GetType(); var type = notification.GetType();
var newNotification = new Notification(); var newNotification = new Notification();
@ -71,9 +70,10 @@ namespace NzbDrone.Core.Notifications
newNotification.Implementation = type.Name; newNotification.Implementation = type.Name;
notifications.Add(newNotification); notifications.Add(newNotification);
i++;
} }
return notifications; return notifications.OrderBy(n => n.Name).ToList();
} }
private Notification ToNotification(NotificationDefinition definition) private Notification ToNotification(NotificationDefinition definition)

Loading…
Cancel
Save