sort in decreasing order

This commit is contained in:
David Renshaw 2014-06-24 17:01:32 -04:00
parent 9203047327
commit ab3b96ba12

View file

@ -17,11 +17,12 @@ public class CatRank
this.score = score; this.result = result;
}
// decreasing order
public int compareTo(ScoredResult other) {
if (this.score < other.score) {
return -1;
} else {
return 1;
} else {
return -1;
}
}
}