sort in decreasing order
This commit is contained in:
parent
9203047327
commit
ab3b96ba12
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue