You could create your own sort class which implements java.util.Comparator e.g.
public class MySort implements Comparator { compare(o1, o2) { String name1 = (String) o1.getLastName(); String name2 = (String) o2.getLastName(); return name1.compareTo(name2); } } then: MySort sort = new MySort(); Collections.sort(myList, sort); -----Original Message----- From: Gomathi [mailto:[EMAIL PROTECTED] Sent: Tuesday, 26 September 2006 4:05 PM To: Struts Users Mailing List Subject: sort the list Hai, I have one arralist,I have to sort that list by using the lastname and the sorted list store in samelist. How to solve this Thanks and advance gomathi ********************************************************************** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]