Make sort by name functionality culture-specific to be more accurately alphabetical
This commit is contained in:
parent
25f626aa29
commit
97f14a8dba
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ internal sealed class StringComparer : IComparer<string>
|
|||
{
|
||||
public int Compare(string a, string b)
|
||||
=> !int.TryParse(a, out _) && !int.TryParse(b, out _)
|
||||
? string.Compare(a, b, StringComparison.Ordinal)
|
||||
? string.Compare(a, b, StringComparison.CurrentCulture)
|
||||
: !int.TryParse(a, out int A)
|
||||
? 1
|
||||
: !int.TryParse(b, out int B)
|
||||
|
|
Loading…
Reference in a new issue