From ab3b96ba12226aee259623c646a8afbb6328922d Mon Sep 17 00:00:00 2001 From: David Renshaw Date: Tue, 24 Jun 2014 17:01:32 -0400 Subject: [PATCH] sort in decreasing order --- benchmark/src/main/java/org/capnproto/benchmark/CatRank.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/benchmark/src/main/java/org/capnproto/benchmark/CatRank.java b/benchmark/src/main/java/org/capnproto/benchmark/CatRank.java index f729141..a3798c6 100644 --- a/benchmark/src/main/java/org/capnproto/benchmark/CatRank.java +++ b/benchmark/src/main/java/org/capnproto/benchmark/CatRank.java @@ -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; } } }