Enhanced the directory list to be sorted.