steveosoule
6/13/2017 - 8:22 PM

Miva - mvt:do QuickSortArray_Sort by Two Properties

Miva - mvt:do QuickSortArray_Sort by Two Properties

<mvt:comment>
	<!-- Sort Shipping Methods by Price then Name -->
</mvt:comment>
<mvt:assign name="l.comparisons[1]:subelement" value="':price'" />
<mvt:assign name="l.comparisons[1]:direction" value="1" />
<mvt:assign name="l.comparisons[2]:subelement" value="':name'" />
<mvt:assign name="l.comparisons[2]:direction" value="1" />
<mvt:do file="g.Module_Library_Utilities" name="l.success" value="QuickSortArray_Sort( l.settings:shippingmethods, 1, miva_array_elements( l.settings:shippingmethods ), l.comparisons, 2 )" />