Correctly order members in front percent embed
This commit is contained in:
parent
206d403526
commit
05f7ead62e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user