sort listings within a directory