reordered directories tree