diff --git a/www/js/pages/football/controller.js b/www/js/pages/football/controller.js index 8dee0ef8d2f1e1f6c5f458ab554cca81870cd8e8..5b68ce2217841791f367291585dcb6aa6760ba06 100644 --- a/www/js/pages/football/controller.js +++ b/www/js/pages/football/controller.js @@ -127,7 +127,7 @@ $scope.getPredictionClass = function (prediction, value) { var percentages = [prediction.prediction_win_first, prediction.prediction_win_second, prediction.prediction_draw]; - percentages.sort(); + percentages.sort(function(a, b){return a-b}); if (percentages.indexOf(value) === 2) { return "main-prediction"; } else if (percentages.indexOf(value) === 1) { @@ -150,7 +150,7 @@ 'green-tick' ]; - percentages.sort(); + percentages.sort(function(a, b){return a-b}); var predictionWin = null; if (prediction.winner) { if (prediction.winner === -1) {