On Sat, 7 Sep 2002, Bret Hughes wrote: > > interpreted. See: > > http://www.colug.net/notes/0208mtg/?c=alphalist.php > > for the code to return an alpha direcrory listing. > > cronological and other sort orders are trivial as well. > > I think that illustrates Todd's point exactly. You must load the files > into an array and sort the array. I am assumming Even more work must be > done to get the time based sort.
I guess I miss the point -- the tooth fairies do not do the sort when you run 'ls' with various options. The binary (or a child process) is doing it behind the scenes, after an option parse and parameter setup -- same as the .php command line code noted. If it is that distressing to see the code, make a function, bury the cruft in a child, and source the function at the top of every script -- but remember the performance hit will start catching up as you make the code 'prettier' and drag around unused 'child' functions. I'll take better performance, please ... In that PHP is a 'kitchen sink' language, it might be pretty straightforward to get a new option tacked on -- but the price is to make it fatter and boggier and even thicker in the documentation. -- Russ Herrold -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list