Potentially fix sort order with emojis

This commit is contained in:
Ske 2020-06-07 19:31:41 +02:00
parent e347928c02
commit 1db46accce

View File

@ -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 =>