views:

244

answers:

1

Let's say I have a XML file wich looks like this:

<root>
  <dynamic-element name='name' type='text' repeatable='true'>
    <dynamic-element name='prename' type='text' repeatable='false'>  </dynamic
element>
  </dynamic-element>
</root>

In Liferay the XML file will be filled with input. At the and I will have multiple $name-elements. The question is how I can sort the elements before I print them out with

#foreach ($name in $name.getSiblings())
 $name.prename.getData() $name.getData()
#end

thanks, Matthew