We published our original Directory Listing sample code a long time ago. It
returned the results in the order it found them on the file system. Ever since
then, one of the most popular requests for that sample had been to be able to
sort the results by some other file attribute. It was never very high on our "To
Do" list, but I finally just got tired of seeing it there and decided to do
something about it. Check out our implementation of this highly-requested script.