summaryrefslogtreecommitdiff
path: root/src/town_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r--src/town_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index 7da0528a1..f4c302100 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -700,7 +700,7 @@ private:
GetString(buf_cache, STR_TOWN_NAME, lastof(buf_cache));
}
- return strcmp(buf, buf_cache);
+ return strnatcmp(buf, buf_cache); // Sort by name (natural sorting).
}
/** Sort by population */