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 less value of simiADD should occur first and record with more value of simiADD should occur later in the sorted list. I wanted to do this operation in a seprate method and not implementing the comparator in Record class.
If you don’t want to define a comparison function inside the Record class: