diff --git a/js/Games.js b/js/Games.js index 369cd19..91e1cdf 100644 --- a/js/Games.js +++ b/js/Games.js @@ -65,7 +65,7 @@ function isAgainst(state, playerID) { function compare(gameCoordinatesA, gameCoordinatesB) { var monthIndexA = Flower[gameCoordinatesA.month]; var monthIndexB = Flower[gameCoordinatesB.month]; - if(monthNumberA < monthNumberB) { + if(monthIndexA < monthIndexB) { return -1; } else if(monthIndexA > monthIndexB) { return 1;