diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/network/network_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 1bdef4b55..03901e295 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -281,7 +281,8 @@ protected: /** Sort servers by name. */ static int CDECL NGameNameSorter(NetworkGameList * const *a, NetworkGameList * const *b) { - return strnatcmp((*a)->info.server_name, (*b)->info.server_name); // Sort by name (natural sorting). + int r = strnatcmp((*a)->info.server_name, (*b)->info.server_name); // Sort by name (natural sorting). + return r == 0 ? (*a)->address.CompareTo((*b)->address) : r; } /** |