Order total sorting calculated more efficiently

https://github.com/opencart/opencart/commit/33c2341f318ed999e3a6303501ff56d0332ad2c1