I have a record object
public Record{ double simiADD; }
I Have a List of Record objects and I want to Sort on simiADD. Record with le
If you don't want to define a comparison function inside the Record class:
Collections.sort(recordList, new Comparator() { public int compare(Record object1, Record object2) { return Double.compare(object1.simiADD, object2.simiADD); } } );