Re: On sorting
Sergiu Dumitriu <[email protected]> Sat, 25 May 2013 11:49:32 -0400
| Newsgroups | gmane.comp.jakarta.velocity.user |
|---|---|
| Message-ID | <[email protected]> |
On 05/25/2013 11:39 AM, [email protected] wrote: > I'm really getting mad! :-) Of course I know that the only reason for this is my lack of skills!!! Catching up... > > I do need some kind of security. Please, could you confirm this statement... > > Class SortTool can be used to sort any list of objects, but NOT a list of strings. Where did you get this from? It is not true, it can sort any list of comparable things: #set ($strings = ['a', 'x', 'b', 'r', 'f']) $sorttool.sort($strings) -> [a, b, f, r, x] > http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/generic/SortTool.html > > Thanks!