[Filebrowser] Added basic sorting.

This commit is contained in:
profi200 2020-07-11 23:34:00 +02:00
parent 8f7f10c519
commit 309f80f2a7
No known key found for this signature in database
GPG Key ID: 17B42AE5911139F3
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}