It should be sorting ascending as it will use natural ordering. If you want to get it in descending order, then do this:

Collections.sort(historik, new BeanComparator("FROM_DATE"));
Collections.reverse(historik);



S�ren Blidorf wrote:

Hi.

I am using the org.apache.commons.beanutils.*;

Collections.sort(historik, new BeanComparator("FROM_DATE"));

How can I decide whether the sort should be asc or desc

BR

Soren




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






--
Jason Lea



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to