[Filebrowser] Added basic sorting.
This commit is contained in:
parent
8f7f10c519
commit
309f80f2a7
|
@ -82,6 +82,9 @@ static Result scanDir(const char *const path, DirList *const dList, const char *
|
|||
|
||||
free(fi);
|
||||
|
||||
// Hacky casting of function pointers. But they are compatible.
|
||||
qsort(dList->strPtrs, dList->num, sizeof(char*), (int (*)(const void *, const void *))strcmp);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue