reorders sed calls