Add sorting by Length

This commit is contained in:
iiSaLMaN
2019-07-07 18:26:56 +03:00
parent 65c8249c94
commit b4ef64fa61
4 changed files with 17 additions and 0 deletions

View File

@ -51,6 +51,9 @@ namespace osu.Game.Screens.Select.Carousel
case SortMode.BPM:
return BeatmapSet.OnlineInfo.BPM.CompareTo(otherSet.BeatmapSet.OnlineInfo.BPM);
case SortMode.Length:
return BeatmapSet.MaxLength.CompareTo(otherSet.BeatmapSet.MaxLength);
case SortMode.Difficulty:
return BeatmapSet.MaxStarDifficulty.CompareTo(otherSet.BeatmapSet.MaxStarDifficulty);
}