[opencms-dev] How to sort news items?
Thomas Gagné
tgagne at wideopenwest.com
Fri Mar 19 22:21:01 CET 2004
Hmm. That is better than sorting them. Creating a comparator wasn't
exciting me. I was better prepared to change the SQL statement.
Stephan Hartmann wrote:
>if you get a vector of the elements in jsp, feel free to iterate it from its
>last entry to the first:
>Vector v = NewsContentDefinition.getNewsList(new Integer(1), "-1");
>for (int i = v.size()-1; i >=0; i--) {
> NewsContentDefinition ncd = (NewsContentDefinition)v.elementAt(i);
> ...
>}
>
>
>
More information about the opencms-dev
mailing list