Flip Operator

Swap the left and right operands and update the operator if necessary.

refactoring
can impact code execution