commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <bay...@generationjava.com>
Subject Re: beanutils sort asc or desc
Date Sun, 04 Jan 2004 23:52:54 GMT

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: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message