From 68e5701f507b9bf3c0a49d2781047bf261ddeb62 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Mon, 23 Aug 2010 20:32:39 -0500 Subject: [PATCH] Fixed Player.compareTo() to sort by games sat, decreasing. --- log4j.properties | 2 +- src/com/jdbernard/teammaker/Player.groovy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/log4j.properties b/log4j.properties index aff155b..cfb0397 100644 --- a/log4j.properties +++ b/log4j.properties @@ -1,4 +1,4 @@ -log4j.rootLogger=TRACE,stdout +log4j.rootLogger=INFO,stdout log4j.com.jdbernard.teammaker=TRACE,file log4j.appender.stdout=org.apache.log4j.ConsoleAppender diff --git a/src/com/jdbernard/teammaker/Player.groovy b/src/com/jdbernard/teammaker/Player.groovy index ee82f8d..cea5613 100644 --- a/src/com/jdbernard/teammaker/Player.groovy +++ b/src/com/jdbernard/teammaker/Player.groovy @@ -5,7 +5,7 @@ public class Player implements Comparable { int gamesSat public int compareTo(Player that) { - int r = this.gamesSat - that.gamesSat + int r = that.gamesSat - this.gamesSat if (r == 0) r = this.name.compareTo(that.name) return r }