Fixed poll ordering of results

This commit is contained in:
Kwoth 2016-10-25 00:04:06 +02:00
parent cf0f0be84f
commit f5193272f1

View File

@ -102,7 +102,7 @@ namespace NadekoBot.Modules.Games
{
var results = participants.GroupBy(kvp => kvp.Value)
.ToDictionary(x => x.Key, x => x.Sum(kvp => 1))
.OrderBy(kvp => kvp.Value);
.OrderByDescending(kvp => kvp.Value);
var totalVotesCast = results.Sum(kvp => kvp.Value);
if (totalVotesCast == 0)