]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - filematch.c
use strcasecmp for file name sorting
[xonotic/darkplaces.git] / filematch.c
index f75ba870b7fc986cec876acd31abea40b99bc9aa..eeae427d4a595a909889728bf3cdba150dfd23b2 100644 (file)
@@ -108,7 +108,7 @@ void stringlistsort(stringlist_t *list)
        {
                for (j = i + 1;j < list->numstrings;j++)
                {
-                       if (strcmp(list->strings[i], list->strings[j]) > 0)
+                       if (strcasecmp(list->strings[i], list->strings[j]) > 0)
                        {
                                temp = list->strings[i];
                                list->strings[i] = list->strings[j];