Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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 )" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment