From 694de51b8ce766a8cd3d89254471c7a7887b1374 Mon Sep 17 00:00:00 2001 From: EmeraldLockdown <86802223+EmeraldLoc@users.noreply.github.com> Date: Sat, 21 Feb 2026 22:35:54 -0600 Subject: [PATCH] Orient player sorting properly --- src/pc/djui/djui_panel_join_lobbies.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pc/djui/djui_panel_join_lobbies.c b/src/pc/djui/djui_panel_join_lobbies.c index 6005c8da8..75df9178f 100644 --- a/src/pc/djui/djui_panel_join_lobbies.c +++ b/src/pc/djui/djui_panel_join_lobbies.c @@ -83,7 +83,7 @@ static int sort_coopnet_lobby_comp(const void* a, const void* b) { } else if (sortBy == LOBBY_SORTING_GAMEMODE) { retValue = strcmp(lobbyA->mode, lobbyB->mode); } else if (sortBy == LOBBY_SORTING_PLAYERS) { - retValue = lobbyA->playerCount - lobbyB->playerCount; + retValue = lobbyB->playerCount - lobbyA->playerCount; } else if (sortBy == LOBBY_SORTING_NONE) { retValue = lobbyA->lobbyId > lobbyB->lobbyId ? 1 : -1; }