From b4dd5181a538a324e4f4e104599b58867068cae9 Mon Sep 17 00:00:00 2001 From: sparklerfish Date: Wed, 4 Feb 2026 18:50:46 -0800 Subject: [PATCH] Fix show name sorting to properly group entries by ShowID When sorting by show name, entries with the same show name were being scattered by round number instead of being grouped together. Changed the secondary sort to use showCompare (matching the pattern used by all other column sorts) so entries with the same show name are now properly grouped by ShowID. Fixes sorting behavior in the Shows/Rounds stats list. --- Views/LevelDetails.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Views/LevelDetails.cs b/Views/LevelDetails.cs index 6adfefc9..d5afa6b5 100644 --- a/Views/LevelDetails.cs +++ b/Views/LevelDetails.cs @@ -862,7 +862,7 @@ private void gridDetails_ColumnHeaderMouseClick(object sender, DataGridViewCellM string showNameIdOne = Multilingual.GetShowName(one.ShowNameId) ?? @" "; string showNameIdTwo = Multilingual.GetShowName(two.ShowNameId) ?? @" "; int showNameIdCompare = showNameIdOne.CompareTo(showNameIdTwo); - return showNameIdCompare != 0 ? showNameIdCompare : roundCompare; + return showNameIdCompare != 0 ? showNameIdCompare : showCompare == 0 ? roundCompare : showCompare; case "Round": roundCompare = one.Round.CompareTo(two.Round); return roundCompare != 0 ? roundCompare : showCompare;