Fixed poll ordering of results
This commit is contained in:
parent
cf0f0be84f
commit
f5193272f1
@ -102,7 +102,7 @@ namespace NadekoBot.Modules.Games
|
|||||||
{
|
{
|
||||||
var results = participants.GroupBy(kvp => kvp.Value)
|
var results = participants.GroupBy(kvp => kvp.Value)
|
||||||
.ToDictionary(x => x.Key, x => x.Sum(kvp => 1))
|
.ToDictionary(x => x.Key, x => x.Sum(kvp => 1))
|
||||||
.OrderBy(kvp => kvp.Value);
|
.OrderByDescending(kvp => kvp.Value);
|
||||||
|
|
||||||
var totalVotesCast = results.Sum(kvp => kvp.Value);
|
var totalVotesCast = results.Sum(kvp => kvp.Value);
|
||||||
if (totalVotesCast == 0)
|
if (totalVotesCast == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user