summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/newgrf_config.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp
index 312472bd1..a8aeb2f63 100644
--- a/src/newgrf_config.cpp
+++ b/src/newgrf_config.cpp
@@ -381,7 +381,7 @@ static int CDECL GRFSorter(const void *p1, const void *p2)
const GRFConfig *c1 = *(const GRFConfig **)p1;
const GRFConfig *c2 = *(const GRFConfig **)p2;
- return strcmp(c1->name != NULL ? c1->name : c1->filename,
+ return strcasecmp(c1->name != NULL ? c1->name : c1->filename,
c2->name != NULL ? c2->name : c2->filename);
}