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

where ReverseComparator is found in Commons-Collections.

Hen

On Sun, 4 Jan 2004, [iso-8859-1] 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]
>


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

Reply via email to