diff options
-rw-r--r-- | src/signs_gui.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp index 5597a1202..237af085e 100644 --- a/src/signs_gui.cpp +++ b/src/signs_gui.cpp @@ -65,7 +65,9 @@ struct SignList { GetString(buf_cache, STR_SIGN_NAME, lastof(buf_cache)); } - return strcasecmp(buf, buf_cache); + int r = strcasecmp(buf, buf_cache); + + return r != 0 ? r : ((*a)->index - (*b)->index); } void SortSignsList() |