1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 19:22:56 +08:00

Fixed ordering bug

This commit is contained in:
RATCM 2022-11-20 19:24:51 +01:00
parent 9040dfbd4e
commit d20a357c0e

View File

@ -206,9 +206,9 @@ namespace osu.Game.Screens.Select.Leaderboards
{ {
// otherwise find all the scores that have all of the currently selected mods (similar to how web applies mod filters) // otherwise find all the scores that have all of the currently selected mods (similar to how web applies mod filters)
// we're creating and using a string list representation of selected mods so that it can be translated into the DB query itself // we're creating and using a string list representation of selected mods so that it can be translated into the DB query itself
var selectedMods = mods.Value.Select(m => m.Acronym); var selectedMods = mods.Value.Select(m => m.Acronym).ToHashSet();
scores = scores.Where(s => s.Mods.Select(m => m.Acronym).SequenceEqual(selectedMods)); scores = scores.Where(s => selectedMods.SetEquals(s.Mods.Select(m => m.Acronym)));
} }
scores = scoreManager.OrderByTotalScore(scores.Detach()); scores = scoreManager.OrderByTotalScore(scores.Detach());