Differential D182 Diff 473 modules/in-commerce/units/shipping_quote_engines/shipping_quote_collector.php
Changeset View
Changeset View
Standalone View
Standalone View
modules/in-commerce/units/shipping_quote_engines/shipping_quote_collector.php
Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Line(s) | |||||
function price_sort($elem1, $elem2) | function price_sort($elem1, $elem2) | ||||
{ | { | ||||
if ($elem1['TotalCost'] == $elem2['TotalCost']) { | if ($elem1['TotalCost'] == $elem2['TotalCost']) { | ||||
return 0; | return 0; | ||||
} | } | ||||
return $elem1['TotalCost'] < $elem2['TotalCost'] ? -1 : 1; | return $elem1['TotalCost'] < $elem2['TotalCost'] ? -1 : 1; | ||||
} | } | ||||
} | } | ||||
No newline at end of file |