self assigned roles are not ordered alphabeticaly

This commit is contained in:
Kwoth 2016-07-17 19:42:58 +02:00
parent 6e20c8d719
commit 4b9ae7b403

View File

@ -74,7 +74,7 @@ namespace NadekoBot.Modules.Administration.Commands
var config = SpecificConfigurations.Default.Of(e.Server.Id);
var msg = new StringBuilder($"There are `{config.ListOfSelfAssignableRoles.Count}` self assignable roles:\n");
var toRemove = new HashSet<ulong>();
foreach (var roleId in config.ListOfSelfAssignableRoles)
foreach (var roleId in config.ListOfSelfAssignableRoles.OrderBy(r=>r.ToString()))
{
var role = e.Server.GetRole(roleId);
if (role == null)