mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
Add date submitted sorting
This commit is contained in:
@ -99,6 +99,12 @@ namespace osu.Game.Screens.Select.Carousel
|
|||||||
|
|
||||||
case SortMode.Difficulty:
|
case SortMode.Difficulty:
|
||||||
return compareUsingAggregateMax(otherSet, b => b.StarRating);
|
return compareUsingAggregateMax(otherSet, b => b.StarRating);
|
||||||
|
|
||||||
|
case SortMode.DateSubmitted:
|
||||||
|
if (BeatmapSet.DateSubmitted == null || otherSet.BeatmapSet.DateSubmitted == null)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return otherSet.BeatmapSet.DateSubmitted.Value.CompareTo(BeatmapSet.DateSubmitted.Value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,6 +20,9 @@ namespace osu.Game.Screens.Select.Filter
|
|||||||
[LocalisableDescription(typeof(SortStrings), nameof(SortStrings.ArtistTracksBpm))]
|
[LocalisableDescription(typeof(SortStrings), nameof(SortStrings.ArtistTracksBpm))]
|
||||||
BPM,
|
BPM,
|
||||||
|
|
||||||
|
[Description("Date Submitted")]
|
||||||
|
DateSubmitted,
|
||||||
|
|
||||||
[Description("Date Added")]
|
[Description("Date Added")]
|
||||||
DateAdded,
|
DateAdded,
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user