Basket #51757 (Version: ) - Miva - Snippets
<mvt:assign name="l.settings:list[1]:name" value="'1apples'" /> <mvt:assign name="l.settings:list[1]:val" value="'v1'" /> <mvt:assign name="l.settings:list[2]:name" value="'2bananas'" /> <mvt:assign name="l.settings:list[2]:val" value="'v2'" /> <mvt:assign name="l.settings:list[3]:name" value="'3carrots'" /> <mvt:assign name="l.settings:list[3]:val" value="'v3'" /> <h2>Before</h2> <mvt:foreach iterator="item" array="list"> &mvt:item:name; + &mvt:item:val;<br> </mvt:foreach> <mvt:do file="g.module_library_utilities" name="l.null" value="QuickSortArray(l.settings:list, ':name', 1)" /> <h2>After</h2> <mvt:foreach iterator="item" array="list"> &mvt:item:name;<br> </mvt:foreach>