diff --git a/PluralKit.Bot/Lists/SortFilterOptions.cs b/PluralKit.Bot/Lists/SortFilterOptions.cs index 4be122a6..4628e658 100644 --- a/PluralKit.Bot/Lists/SortFilterOptions.cs +++ b/PluralKit.Bot/Lists/SortFilterOptions.cs @@ -87,8 +87,9 @@ namespace PluralKit.Bot // Order clause query.Append(SortProperty switch { - SortProperty.Name => " order by members.name", - SortProperty.DisplayName => " order by members.display_name, members.name", + // Name/DN order needs `collate "C"` to match legacy .NET behavior (affects sorting of emojis, etc) + SortProperty.Name => " order by members.name collate 'C'", + SortProperty.DisplayName => " order by members.display_name, members.name collate 'C'", SortProperty.Hid => " order by members.hid", SortProperty.CreationDate => " order by members.created", SortProperty.Birthdate =>