Merge pull request #4596 from Ferdi265/master

BeatmapLeaderboard: fix local scores not being sorted
This commit is contained in:
Dean Herbert 2019-04-07 20:56:03 +09:00 committed by GitHub
commit 869744b1ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
{
Scores = scoreManager.QueryScores(s => !s.DeletePending && s.Beatmap.ID == Beatmap.ID).ToArray();
Scores = scoreManager.QueryScores(s => !s.DeletePending && s.Beatmap.ID == Beatmap.ID).OrderByDescending(s => s.TotalScore).ToArray();
PlaceholderState = Scores.Any() ? PlaceholderState.Successful : PlaceholderState.NoScores;
return null;
}