https://smealum.github.io/ctrulib/fs_8h.html#ab1518557767f93a99e04d08e97ae91fcHello guyscan one of you help me to understand how to sort entries read by the libctru FSDIR_Read function ?
Thankshttps://smealum.github.io/ctrulib/fs_8h.html#ab1518557767f93a99e04d08e97ae91fc
Have you already read that?
edit: ah... it doesn't help? Sorry XD
edit2: here's an example https://github.com/Steveice10/FBI/blob/master/source/ui/section/task/listfiles.c#L191
That example is probably way more than you need as it spawns a thread to read the directory. The part that directly relates to your question is - use qsort (or your own sort algorithm) to sort the results.ThanksI already read both, I will study the steveice10 code more deeply. Thanks for answering mate
![]()
ThanksThat example is probably way more than you need as it spawns a thread to read the directory. The part that directly relates to your question is - use qsort (or your own sort algorithm) to sort the results.

