reorder the directory