GLBasic forum

Main forum => GLBasic - en => Topic started by: Ian Price on 2009-Aug-05

Title: Directory structure
Post by: Ian Price on 2009-Aug-05
I've just updated GLB to V7 and noticed that the directory structure is displayed differently (reversed?) compared to GLB (v6), which appeared to display in order of the creation date the directory (oldest first). The order now appears to be display the list with the most recent first. Is this the case?

Any chance of ordering the directory alpha-numerically, rather than by creation date order? I know we can manipulate the directory data in an array to display alphabetically, but it's easier if this is built in. Or is it already?
Title: Re: Directory structure
Post by: MrTAToad on 2009-Aug-05
I presume you're talking about GETFILELIST ?  I believe the OS controls the order the files are received (and would be different on each type of machine).  The only way would be to use sort array after getting the list - I suppose it could be easy to add an extra parameter to the aforementioned command to get this sorted in alphabetical order.
Title: Re: Directory structure
Post by: Moru on 2009-Aug-05
I always thought it was in the order it was put on the disk, not sorted at all. I haven't seen any differences in the order so far but my files are always created in numbered order in an empty folder.
Title: Re: Directory structure
Post by: Ian Price on 2009-Aug-05
Sorry, yes I did mean via GETFILELIST (it was late; I was hot and very tired!)

Like I said, I can sort the list manually, I just wondered really why it had changed.

I'm at work now, but screenies of my Battle Cards game would show the difference in directory listing.

It's not a big deal, it just came as a surprise.
Title: Re: Directory structure
Post by: MrTAToad on 2009-Aug-05
Perhaps you were lucky :)
Title: Re: Directory structure
Post by: Kitty Hello on 2009-Aug-05
Yikes! It should be sorted alphabetically. I'll see.
Title: Re: Directory structure
Post by: Ian Price on 2009-Aug-05
Original image from GLB v6
(http://www.iprice.remakes.org/my_stuff/battlecards02.PNG)

Image taken with GLB v7
(http://www.iprice.remakes.org/my_stuff/battlecards05.JPG)

Neither are in alphabetical order and v7 is definitely reversed.

Cheers Gernot, alphabetically listed would indeed be preferred. :)
Title: Re: Directory structure
Post by: Kitty Hello on 2009-Aug-06
fixed in next update.