PHYSFS_enumerateFiles() actually promises sorting order, and always has.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 14 Aug 2014 21:17:04 -0400
changeset 1350 b0fa354873f2
parent 1347 93b2026e4964
child 1351 ea662d0cbcf0
PHYSFS_enumerateFiles() actually promises sorting order, and always has.
src/physfs.h
--- a/src/physfs.h	Sun Jul 20 13:36:56 2014 +0200
+++ b/src/physfs.h	Thu Aug 14 21:17:04 2014 -0400
@@ -1097,8 +1097,9 @@
  * We've got [z.sav].
  * We've got [w.sav].\endverbatim
  *
- * Feel free to sort the list however you like. We only promise there will
- *  be no duplicates, but not what order the final list will come back in.
+ * Feel free to sort the list however you like. However, the returned data
+ *  will always contain no duplicates, and will be always sorted in alphabetic
+ *  (rather: Unicode) order for you.
  *
  * Don't forget to call PHYSFS_freeList() with the return value from this
  *  function when you are done with it.