Multidimensional Array Sort Shipping Methods by Lowest Price#
Description#
This snippet sorts a multidimensional array of shipping methods by the lowest price using the QuickSortArray function. It efficiently organizes shipping options, making it easier to present customers with the most cost-effective choices first.
Snippet#
<mvt:comment>
|
| QuickSortArray( array, member, direction[1/-1] )
|
</mvt:comment>
<mvt:do file="g.module_library_utilities" name="s.null" value="QuickSortArray(l.settings:shippingmethods, ':price',1)" />