1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-23 00:07:24 +08:00

Simplify ruleset ordering

This commit is contained in:
Bartłomiej Dach 2020-05-01 17:15:35 +02:00
parent 9f091f3a56
commit 623611d9dc

View File

@ -88,10 +88,9 @@ namespace osu.Game.Screens.Select
private IEnumerable<RulesetInfo> getBestRulesetOrder()
{
bestRulesetOrder ??= recommendedStarDifficulty.ToList()
.OrderBy(pair => pair.Value)
bestRulesetOrder ??= recommendedStarDifficulty.OrderByDescending(pair => pair.Value)
.Select(pair => pair.Key)
.Reverse();
.ToList();
return moveCurrentRulesetToFirst();
}