1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-24 09:37:19 +08:00

Order scores by score

This commit is contained in:
smoogipoo 2021-08-30 19:03:16 +09:00
parent 47061c0210
commit b217dd1a65

View File

@ -259,7 +259,10 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
return;
}
var scoreInfos = newScores.Scores.Select(s => s.CreateScoreInfo(rulesets)).ToList();
var scoreInfos = newScores.Scores.Select(s => s.CreateScoreInfo(rulesets))
.OrderByDescending(s => scoreManager.GetBindableTotalScore(s).Value)
.ToList();
var topScore = scoreInfos.First();
scoreTable.DisplayScores(scoreInfos, topScore.Beatmap?.Status.GrantsPerformancePoints() == true);