Keep alphabetical order when targetting ASF commands

This commit is contained in:
JustArchi 2017-01-31 22:32:38 +01:00
parent ec697c2681
commit 8e7ebfd2d1

View file

@ -734,7 +734,7 @@ namespace ArchiSteamFarm {
HashSet<Bot> result = new HashSet<Bot>(); HashSet<Bot> result = new HashSet<Bot>();
foreach (string botName in botNames.Where(botName => !string.IsNullOrEmpty(botName))) { foreach (string botName in botNames.Where(botName => !string.IsNullOrEmpty(botName))) {
if (botName.Equals(SharedInfo.ASF)) { if (botName.Equals(SharedInfo.ASF)) {
foreach (Bot bot in Bots.Values) { foreach (Bot bot in Bots.OrderBy(bot => bot.Key).Select(bot => bot.Value)) {
result.Add(bot); result.Add(bot);
} }