Reorder directories.