Sorted the directories