mirror of https://github.com/ppy/osu
BeatmapLeaderboard: fix local scores not being sorted
This commit is contained in:
parent
1b7d8b7dcf
commit
cb3532e7d4
|
@ -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).OrderBy(s => -s.TotalScore).ToArray();
|
||||
PlaceholderState = Scores.Any() ? PlaceholderState.Successful : PlaceholderState.NoScores;
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue