Make order total comparison more flexible