Parameter arguments are supplied at runtime; you cannot sort on a method signature like you propose because the arguments do not exist yet and are not part of the signature.
Mark -----Original Message----- From: Jagannayakam [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 2:13 PM To: Struts Users Mailing List (E-mail) Subject: comparators Hi all , In a action class i have List of FormBeans. I want to have this formbean sorted on one of its parameter say String name . I have a java comparator say NameComparator which implements comparator interface so i implemented method compare(Object o1 , Object o2 ) to compare the name attribute of formbean . Then I perform Collections.sort(list , nameComparatorObject ) where NameComparator nameComparatorObject = new NameComparator(); But still the list of form beans are sorted by name. any suggestions ? Regards, Jagan. --------------------------------------------------------------------- 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]