From dcf8420c43cf0f7caf19799dbd0a00a801b92c06 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 29 Jul 2008 07:51:55 +0000 Subject: (svn r13865) -Codechange: Use case-insensitive sort for NewGRF list. --- src/newgrf_config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3-70-g09d2