Correctly order members in front percent embed

This commit is contained in:
Ske 2019-07-15 21:41:24 +02:00
parent 206d403526
commit 05f7ead62e

View File

@ -151,7 +151,7 @@ namespace PluralKit.Bot {
var maxEntriesToDisplay = 24; // max 25 fields allowed in embed - reserve 1 for "others" var maxEntriesToDisplay = 24; // max 25 fields allowed in embed - reserve 1 for "others"
var membersOrdered = frontpercent.OrderBy(pair => pair.Value).Take(maxEntriesToDisplay).ToList(); var membersOrdered = frontpercent.OrderByDescending(pair => pair.Value).Take(maxEntriesToDisplay).ToList();
foreach (var pair in membersOrdered) foreach (var pair in membersOrdered)
{ {
var frac = pair.Value / totalDuration; var frac = pair.Value / totalDuration;