Hello,
So only by using the tools i can use lists and sort right?
this code should work:
$dateList.add($date) //it populates
$sorter.sort($dateList,[${date}:asc]) //does not sort
##Collections.sort($dateList)
or maybe
$dateList.sort() //does not work
--
View this message in context:
On Dec 3, 2009, at 2:54 PM, Bubulina wrote:
Hello,
So only by using the tools i can use lists and sort right?
this code should work:
Show us the full code. We can't see how you've initialized the
dateList array.
$dateList.add($date) //it populates
#foreach($subdoc in $allPages)
#set($suffix = $subdoc.substring(0,3))
#if($suffix == stge)
tr
#set($rcDoc = $xwiki.getDocument($subdoc))
#set($rcDt =
this works:
#foreach ($d in $xwiki.sort($dateList))
td$d/td
#end
Bubulina wrote:
#foreach($subdoc in $allPages)
#set($suffix = $subdoc.substring(0,3))
#if($suffix == stge)
tr
Check out $util, it has a lot of useful methods.
http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki%2Dcore%2D2.1%2Dmilestone%2D1%2Djavadoc.jar/com/xpn/xwiki/api/Util.html
-Joshua
Bubulina wrote:
this works:
#foreach ($d in $xwiki.sort($dateList))
td$d/td
#end
Bubulina