Skip to content

Commit

Permalink
added sorting of names to earnings graph
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjschneebaum authored and PunkPun committed Apr 30, 2024
1 parent 10d7436 commit affc988
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OpenRA.Mods.Common/Widgets/LineGraphWidget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ public override void Draw()
var origin = new float2(rect.Left, rect.Bottom);

var keyOffset = 0;

// added sorting so that names appear in order of highest value to lowest value
series = series.OrderByDescending(s => s.Points.LastOrDefault()).ToList();

foreach (var s in series)
{
var key = s.Key;
Expand Down

0 comments on commit affc988

Please sign in to comment.