Eliminated arbitrary swap of variable order in Math.min