Hi,
I want to sort the items in a panel by name.
I'm using as follows, but the items in the panel are not in alphabetical
order.
How can I do this with the same code below?
#set($web = $doc.web)
#panelheader('Name')
#foreach($subdoc in $xwiki.getSpaceDocsName($doc.web))
Hello,
you can use the velocity $sorttool, bundled by default with XWiki.
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting#HXWiki27sVelocityAPI
http://velocity.apache.org/tools/releases/velocity-tools-1.2/javadoc/org/apache/velocity/tools/generic/SortTool.html
AFAIR, I'd try