From 13fea24da3287763ac3bae4ccf085e25baa48e91 Mon Sep 17 00:00:00 2001 From: Emilcha <79055013+Emilcha@users.noreply.github.com> Date: Sat, 8 Jun 2024 16:57:33 +0200 Subject: [PATCH 1/2] Sort Compare Not Case Sensitive --- src/game/client/components/menus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/menus.h b/src/game/client/components/menus.h index f07231d73..55457fa90 100644 --- a/src/game/client/components/menus.h +++ b/src/game/client/components/menus.h @@ -403,7 +403,7 @@ protected: bool operator<(const CFriendItem &Other) const { - const int Result = str_comp(m_aName, Other.m_aName); + const int Result = str_comp_nocase(m_aName, Other.m_aName); return Result < 0 || (Result == 0 && str_comp(m_aClan, Other.m_aClan) < 0); } }; From 24ea8d8977296e295a4e35cc64c2faf5500a678e Mon Sep 17 00:00:00 2001 From: Emilcha <79055013+Emilcha@users.noreply.github.com> Date: Sat, 8 Jun 2024 19:28:06 +0200 Subject: [PATCH 2/2] Consistancy, #8468 --- src/game/client/components/menus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/menus.h b/src/game/client/components/menus.h index 55457fa90..dae2b20de 100644 --- a/src/game/client/components/menus.h +++ b/src/game/client/components/menus.h @@ -404,7 +404,7 @@ protected: bool operator<(const CFriendItem &Other) const { const int Result = str_comp_nocase(m_aName, Other.m_aName); - return Result < 0 || (Result == 0 && str_comp(m_aClan, Other.m_aClan) < 0); + return Result < 0 || (Result == 0 && str_comp_nocase(m_aClan, Other.m_aClan) < 0); } };