[xwiki-users] sort problem or missunderstanding of tool?

2009-12-03 Thread Bubulina
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:

Re: [xwiki-users] sort problem or missunderstanding of tool?

2009-12-03 Thread Vincent Massol
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

Re: [xwiki-users] sort problem or missunderstanding of tool?

2009-12-03 Thread Bubulina
#foreach($subdoc in $allPages) #set($suffix = $subdoc.substring(0,3)) #if($suffix == stge) tr #set($rcDoc = $xwiki.getDocument($subdoc)) #set($rcDt =

Re: [xwiki-users] sort problem or missunderstanding of tool?

2009-12-03 Thread Bubulina
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

Re: [xwiki-users] sort problem or missunderstanding of tool?

2009-12-03 Thread Josh
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