Fixed Player.compareTo() to sort by games sat, decreasing.

This commit is contained in:
Jonathan Bernard 2010-08-23 20:32:39 -05:00
parent 5d6f5882de
commit 68e5701f50
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -5,7 +5,7 @@ public class Player implements Comparable<Player> {
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
}