directory is sorted