Page 1 of 1

ExamineDirectory and alphabetical sorting

Posted: Wed Nov 15, 2006 8:16 pm
by Tranquil
Hi all!

I encountered that ExamineDirectory lists Folders and Files in alphabetical order. (tested on windows).

Is this trustable? Or should I do an own sorting to be sure?

Thanks for any hint.

Posted: Wed Nov 15, 2006 8:25 pm
by Konne
It's not at all trustable. Do it yourself!

Posted: Fri Nov 24, 2006 12:02 am
by AND51
Why not saving all names to a linked list and sort t with the sorting commands?

Re: ExamineDirectory and alphabetical sorting

Posted: Sat Nov 25, 2006 8:46 am
by Rescator
Tranquil wrote:Hi all!

I encountered that ExamineDirectory lists Folders and Files in alphabetical order. (tested on windows).

Is this trustable? Or should I do an own sorting to be sure?

Thanks for any hint.
Nope! As far as I know this is subject to OS/filesystem default.
Which could be anything, alphabetical, creation date, physical order.

Posted: Sat Nov 25, 2006 8:09 pm
by Tranquil
AND51 wrote:Why not saving all names to a linked list and sort t with the sorting commands?
I still save the directory in a linkeslist. But I wanted to save some CPU Time for sorting it as I noticed that the results are already sorted by the OS. And so I wondered about it...

But to be sure I will do a sort myself. Thanks for all your hints!