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 > $sorter.sort($dateList,["${date}:asc"]) //does not sort What is $sorter? You could use $sorttool: http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/generic/SortTool.html > ##Collections.sort($dateList) > or maybe > $dateList.sort() //does not work Java List class doesn't have such a method! Why would you expect it to work? See http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html Thanks -Vincent _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users