Originally posted by Edwin Dalorzo:
List<StoreObject> list = new ArrayList<StoreObject>();
//Once sorted use your iterator here
ListIterator<StoreObject> iter = list.listIterator();
//Sort reversed
Comparator<StoreObject> ByReversedRegion;
}
public static Comparator<StoreObject> ByRegion = new RegionComparator();
public static Comparator<StoreObject> ByStoreName = new StoreNameComparator();
//One comparator for every field you want to sort the table
public static class RegionComparator implements Comparator<StoreObject>{
[ April 15, 2006: Message edited by: Edwin Dalorzo ][/QB]