From 1db46accce85a8dcd697cc31b961b3de8edbfda1 Mon Sep 17 00:00:00 2001 From: Ske Date: Sun, 7 Jun 2020 19:31:41 +0200 Subject: [PATCH] Potentially fix sort order with emojis --- PluralKit.Bot/Lists/SortFilterOptions.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 =>