Hi Danny,
I think it may be because you have not implemented the compare method?
One simple comparator I use for sorts looks like this:
public class TermComparator implements Comparator {
public int compare(Object term1, Object term2) {
String first = ((Term) term1).getText().toUppe
Hello!
I have a list with objects I've got from "backend-side". Every object has a
getSort() method, which returns an integer value. I've never worked with
Comparator before, but I tried like the following:
public List getObjectListe() {
List sortedList = model.getObjects();
Collections.s