Reorder directory tree