Try asking the commons-user list. This is the tomcat list.

-Tim

S�ren Blidorf wrote:
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.


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



Reply via email to