Reorder arguments so output values are first.