rewrite operand sorters