You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by me...@bpam.fr on 2003/04/04 18:04:04 UTC
Sorting Collections
hi all,
I used to use the BeanComparator Class from commons.beanutils package
to sort my collections in that manner below.
Collection.sort(myCollection,new BeanComparator("myProperty"));
where my property is of type String.
This allowed me to sort my list in alphabetic order.
Now,I need a BeanComparator that is able to sort by Date and by Float
values.
I'd like to know if someone has a ready to use generic Comparator before
developping my own.
thanks in advance.
Meissa