You are here

function _total_sort in Ubercart 5

Same name and namespace in other branches
  1. 6.2 payment/uc_payment/uc_payment.module \_total_sort()
1 string reference to '_total_sort'
uc_payment_get_totals in payment/uc_payment/uc_payment.module

File

payment/uc_payment/uc_payment.module, line 581

Code

function _total_sort($a, $b) {
  if ($a[0] == $b[0]) {
    return 0;
  }
  return $a[0] < $b[0] ? -1 : 1;
}