fixed bug where directory listing order was different on different syste...

...ms (order not guaranteed).  Directory listings are now always sorted.  Test now reflects that.