mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 15:53:21 +08:00
User invariant culture sorting.
This commit is contained in:
parent
3eece390cb
commit
01c379da19
@ -162,13 +162,13 @@ namespace osu.Game.Screens.Select
|
|||||||
switch (mode)
|
switch (mode)
|
||||||
{
|
{
|
||||||
case FilterControl.SortMode.Artist:
|
case FilterControl.SortMode.Artist:
|
||||||
sortedGroups.Sort((x, y) => string.Compare(x.BeatmapSet.Metadata.Artist, y.BeatmapSet.Metadata.Artist));
|
sortedGroups.Sort((x, y) => string.Compare(x.BeatmapSet.Metadata.Artist, y.BeatmapSet.Metadata.Artist, StringComparison.InvariantCultureIgnoreCase));
|
||||||
break;
|
break;
|
||||||
case FilterControl.SortMode.Title:
|
case FilterControl.SortMode.Title:
|
||||||
sortedGroups.Sort((x, y) => string.Compare(x.BeatmapSet.Metadata.Title, y.BeatmapSet.Metadata.Title));
|
sortedGroups.Sort((x, y) => string.Compare(x.BeatmapSet.Metadata.Title, y.BeatmapSet.Metadata.Title, StringComparison.InvariantCultureIgnoreCase));
|
||||||
break;
|
break;
|
||||||
case FilterControl.SortMode.Author:
|
case FilterControl.SortMode.Author:
|
||||||
sortedGroups.Sort((x, y) => string.Compare(x.BeatmapSet.Metadata.Author, y.BeatmapSet.Metadata.Author));
|
sortedGroups.Sort((x, y) => string.Compare(x.BeatmapSet.Metadata.Author, y.BeatmapSet.Metadata.Author, StringComparison.InvariantCultureIgnoreCase));
|
||||||
break;
|
break;
|
||||||
case FilterControl.SortMode.Difficulty:
|
case FilterControl.SortMode.Difficulty:
|
||||||
sortedGroups.Sort((x, y) =>
|
sortedGroups.Sort((x, y) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user