I have a page with a number of objects, which I want to display in sorted order. I
currently have code which can view all the items (the page as well as the class is
"Main.Teams":
#set($teamsdoc = $xwiki.getDocument("Main.Teams"))
#foreach($team in $teamsdoc.getObjects("Main.Teams"))
* $team.get('name')
#end
I allow users to add new teams, but they always go to the bottom of the list. However
I'd like to print out them in order by the "name" property. I've tried
using groovy for this, but I just can't get simple things (like printing list contents
any way other than "print teams") to work. Can anyone help? Thanks ...
shawn.