From aab9e5fdad03924636ff3ef0fcb5a538dc5ff780 Mon Sep 17 00:00:00 2001 From: colinmendoza121 Date: Fri, 21 Feb 2025 20:30:00 -0500 Subject: [PATCH] Moved helper compare strings function above --- src/qt_gui/game_list_frame.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/qt_gui/game_list_frame.h b/src/qt_gui/game_list_frame.h index d22492c23..b84ff939c 100644 --- a/src/qt_gui/game_list_frame.h +++ b/src/qt_gui/game_list_frame.h @@ -70,6 +70,12 @@ public: return (size[size.size() - 2] == 'G') ? num * 1024 : num; } + static bool CompareStringsCaseInsensitive(std::string_view a, std::string_view b) { + auto lhs = a | std::views::transform(::tolower); + auto rhs = b | std::views::transform(::tolower); + return std::ranges::lexicographical_compare(lhs, rhs); + } + static bool CompareStringsAscending(GameInfo a, GameInfo b, int columnIndex) { switch (columnIndex) { case 1: { @@ -121,10 +127,4 @@ public: return false; } } - - static bool CompareStringsCaseInsensitive(std::string_view a, std::string_view b) { - auto lhs = a | std::views::transform(::tolower); - auto rhs = b | std::views::transform(::tolower); - return std::ranges::lexicographical_compare(lhs, rhs); - } };