Add ability to sort by source in song select

This commit is contained in:
Joseph Madamba
2021-05-09 14:10:38 -07:00
parent 2bcf1ed306
commit 8964d51de9
3 changed files with 8 additions and 1 deletions

View File

@ -82,6 +82,9 @@ namespace osu.Game.Screens.Select.Carousel
case SortMode.Difficulty:
return compareUsingAggregateMax(otherSet, b => b.StarDifficulty);
case SortMode.Source:
return string.Compare(BeatmapSet.Metadata.Source, otherSet.BeatmapSet.Metadata.Source, StringComparison.OrdinalIgnoreCase);
}
}