1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 23:22:55 +08:00

BeatmapLeaderboard: fix local scores not being sorted

This commit is contained in:
theFerdi265 2019-04-06 00:53:02 +02:00
parent 1b7d8b7dcf
commit cb3532e7d4

View File

@ -55,7 +55,7 @@ namespace osu.Game.Screens.Select.Leaderboards
{
if (Scope == BeatmapLeaderboardScope.Local)
{
Scores = scoreManager.QueryScores(s => !s.DeletePending && s.Beatmap.ID == Beatmap.ID).ToArray();
Scores = scoreManager.QueryScores(s => !s.DeletePending && s.Beatmap.ID == Beatmap.ID).OrderBy(s => -s.TotalScore).ToArray();
PlaceholderState = Scores.Any() ? PlaceholderState.Successful : PlaceholderState.NoScores;
return null;
}