I have a list of TestRecord objects in velocity which have a method getDateExecuted which returns a java.util.date object. I would like to sort the Records by date using the sort tool.(or appropriate sorting algorithm) However I have not seen any implementations of the sort tool that aren't using an xPath node as the list argument. If the sort tool can not be used any information on creating a bubble/selection sort using only foreach loops would be helpful.
sort tool documentation: http://velocity.apache.org/tools/devel/apidocs/org/apache/velocity/tools/generic/SortTool.html