reorder transformer