[plt-scheme] directory-list order?

From: Eli Barzilay (eli at barzilay.org)
Date: Wed Sep 13 11:48:50 EDT 2006

On Sep 13, Paul Graham wrote:
> Is it defined what order directory-list returns filenames in?

Nothing documented -- the source simply creates a list from the system
call with no sorting.

> It currently seems to return files in order of creation.  This
> is extremely convenient for the app I'm writing, and it would 
> be handy if I could count on it...  --pg

My guess is that this is due to the FS implementation.  If you need
them sorted by time, sort the result using

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.