Potentially fix sort order with emojis
This commit is contained in:
parent
e347928c02
commit
1db46accce
@ -87,8 +87,9 @@ namespace PluralKit.Bot
|
|||||||
// Order clause
|
// Order clause
|
||||||
query.Append(SortProperty switch
|
query.Append(SortProperty switch
|
||||||
{
|
{
|
||||||
SortProperty.Name => " order by members.name",
|
// Name/DN order needs `collate "C"` to match legacy .NET behavior (affects sorting of emojis, etc)
|
||||||
SortProperty.DisplayName => " order by members.display_name, members.name",
|
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.Hid => " order by members.hid",
|
||||||
SortProperty.CreationDate => " order by members.created",
|
SortProperty.CreationDate => " order by members.created",
|
||||||
SortProperty.Birthdate =>
|
SortProperty.Birthdate =>
|
||||||
|
Loading…
Reference in New Issue
Block a user