From 97f14a8dba04e5b8d9440870e3384e5a41233d94 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Mon, 22 Jul 2024 03:12:27 -0400 Subject: [PATCH] Make sort by name functionality culture-specific to be more accurately alphabetical --- CreamInstaller/Components/PlatformIdComparer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CreamInstaller/Components/PlatformIdComparer.cs b/CreamInstaller/Components/PlatformIdComparer.cs index 2c87d13..8e3292c 100644 --- a/CreamInstaller/Components/PlatformIdComparer.cs +++ b/CreamInstaller/Components/PlatformIdComparer.cs @@ -22,7 +22,7 @@ internal sealed class StringComparer : IComparer { 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)