Reorders replacement rules