1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

BeatmapLeaderboard: use OrderByDescending instead of negation

(suggested by peppy)
This commit is contained in:
Ferdinand Bachmann 2019-04-07 13:26:35 +02:00 committed by GitHub
parent cb3532e7d4
commit d431ca4efc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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).OrderBy(s => -s.TotalScore).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;
}