From 628b88f11256086c63185f5a90d56ebb82469a7c Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 14 Aug 2014 21:17:04 -0400 Subject: [PATCH] PHYSFS_enumerateFiles() actually promises sorting order, and always has. --- src/physfs.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/physfs.h b/src/physfs.h index 904a624f..377f60ef 100644 --- a/src/physfs.h +++ b/src/physfs.h @@ -1097,8 +1097,9 @@ PHYSFS_DECL const char *PHYSFS_getRealDir(const char *filename); * 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.