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
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ protected override APIRequest FetchScores(Action<IEnumerable<ScoreInfo>> scoresC
{ {
if (Scope == BeatmapLeaderboardScope.Local) 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; PlaceholderState = Scores.Any() ? PlaceholderState.Successful : PlaceholderState.NoScores;
return null; return null;
} }