mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 11:35:35 +08:00
Simplify ruleset ordering
This commit is contained in:
parent
9f091f3a56
commit
623611d9dc
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user