reorder directories