tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Søren Blidorf <so...@nolas.dk>
Subject beanutils.BeanComparator
Date Thu, 18 Dec 2003 17:09:35 GMT
Hi.

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

I am doing the following:

Collections.sort(people, new BeanComparator("lastname"));

How can I sort by lastname and then by firstname?

If I do this:

Collections.sort(people, new BeanComparator("lastname"));
Collections.sort(people, new BeanComparator("firstname"));

It's only sorted by firstname.

Please help and best regards.

Soren



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


Mime
View raw message