Page 1 of 1

Directory Sort

Posted: Tue Nov 25, 2003 10:50 am
by bcgreen
Question: Is there a way to change how files in a directory are sorted in PB? I want to be able to list directories as they are listed in windows explorer...For instance: How can I produce a directory listing that looks like this:

Code: Select all

pic1
pic2
...
...
pic9
pic10
Rather than this:

Code: Select all

pic1
pic10
pic2
...
...
pic8
pic9
As always, thanks in advance!!!
Bryan

Posted: Tue Nov 25, 2003 11:15 am
by blueznl
you could sort them first on length and then subsort them alphabetically, but that would mean that picx comes before pic10, and i'm not sure that is what you want :-)

Posted: Tue Nov 25, 2003 11:24 am
by Froggerprogger
use pic01 ... pic09 or if you have more than 99 pics use pic001 ... pic009 :)

Posted: Tue Nov 25, 2003 7:49 pm
by GPI
NOTE:
Windows sort the direectory only on NTFS-Systems. When the user have a FAT32-System you MUST sort it manual!

FAT32 isn't dead, because it is the only File-Format that all OS can read and write (Linux,Windows,...)

So always sort your directory-entries manuall!