Sort directory.