path reordering