Add sorting by BPM

This commit is contained in:
iiSaLMaN
2019-07-07 18:14:23 +03:00
parent ffc3c9f8f6
commit 188c80374e
2 changed files with 8 additions and 1 deletions

View File

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