order the directories