Renumber wires gives different results

When running the “renumber wires” command, the results will differ. Sometimes the wire will be numbered from where it originates, and sometimes the wire is numbered from where it ends. This is a problem with origin/destination arrows. The wire number formula I am using is below.

SWE 2016 SP5

ROW_TAG + IIF(VAL(EQUIPOTENTIAL_ORDERNO)==1,"",CHAR(VAL(EQUIPOTENTIAL_ORDERNO)+63))

SolidworksElectrical