Browse Source

Merge pull request #445 from crazyBaboon/ImproveFileBrowser

demo: ignore case when sorting strings alphabetically in filebrowser
dumblob 3 years ago
parent
commit
e5c44b7182
1 changed files with 1 additions and 1 deletions
  1. 1 1
      demo/common/file_browser.c

+ 1 - 1
demo/common/file_browser.c

@@ -372,7 +372,7 @@ int cmp_fn(const void *str1, const void *str2)
 {
     const char *str1_ret = *(const char **)str1;
     const char *str2_ret = *(const char **)str2;
-    return strcmp(str1_ret, str2_ret);
+    return nk_stricmp(str1_ret, str2_ret);
 }
 
 static int