From d5c030065aa58dce4358e994d605f1d69ff45b66 Mon Sep 17 00:00:00 2001 From: trml Date: Tue, 25 Aug 2020 02:26:36 +0200 Subject: [PATCH] Sort players by descending order first --- src/engine/client/serverbrowser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/client/serverbrowser.cpp b/src/engine/client/serverbrowser.cpp index a44045459..876799d42 100644 --- a/src/engine/client/serverbrowser.cpp +++ b/src/engine/client/serverbrowser.cpp @@ -145,14 +145,14 @@ bool CServerBrowser::SortCompareNumPlayers(int Index1, int Index2) const { CServerEntry *a = m_ppServerlist[Index1]; CServerEntry *b = m_ppServerlist[Index2]; - return a->m_Info.m_NumFilteredPlayers < b->m_Info.m_NumFilteredPlayers; + return a->m_Info.m_NumFilteredPlayers > b->m_Info.m_NumFilteredPlayers; } bool CServerBrowser::SortCompareNumClients(int Index1, int Index2) const { CServerEntry *a = m_ppServerlist[Index1]; CServerEntry *b = m_ppServerlist[Index2]; - return a->m_Info.m_NumClients < b->m_Info.m_NumClients; + return a->m_Info.m_NumClients > b->m_Info.m_NumClients; } bool CServerBrowser::SortCompareNumPlayersAndPing(int Index1, int Index2) const