Order notifications in schema

This commit is contained in:
Mark McDowall 2013-05-26 23:01:27 -07:00
parent 261ce772de
commit 6397239435
1 changed files with 2 additions and 2 deletions

View File

@ -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)