To order a list you create a listobject using the listobject:create tag as shown below. You then add a listobject:addrow to the listobject:create which has three listobject:argument. The attributetypename should contain the name of the attribute type. The attributename is the name of the attribute of the list item you wish to sort against and the direction is either ascending or descending. You then output this using the listobject:tolist. This is the name that is then added to the assetset:getassetlist tag in the attribute list.
<listobject:create name="mylistobject" columns="attributetypename,attributename,direction"/ <listobject:addrow name="mylistobject"> <listobject:argument name="attributetypename" value="myAttributeType"/> <listobject:argument name="attributename" value='DisplayName'/> <listobject:argument name="direction" value="ascending"/> </listobject:addrow> <listobject:tolist name="mylistobject" listvarname="listOrder"/> <assetset:getassetlist name="searchResults" listvarname="resultsList" list="listOrder"/>


