Sort directory listings for more reliable tests