diff --git a/source/src/serverbrowser.cpp b/source/src/serverbrowser.cpp index 169597b3..3a2b2a8b 100644 --- a/source/src/serverbrowser.cpp +++ b/source/src/serverbrowser.cpp @@ -467,7 +467,7 @@ static const char *srvsortstr(int n) int sicompare(serverinfo **ap, serverinfo **bp) { serverinfo *a = *ap, *b = *bp; - int dir = serversortdir ? 1 : -1; + int dir = serversortdir ? -1 : 1; if((a->protocol==PROTOCOL_VERSION) > (b->protocol==PROTOCOL_VERSION)) return -dir; if((b->protocol==PROTOCOL_VERSION) > (a->protocol==PROTOCOL_VERSION)) return dir; if(!a->numplayers && b->numplayers) return dir;