Fixes an issue where Magento relies on undefined behavior in the PHP runtime for sorting totals.