diff --git a/www/js/pages/tennis/controller.js b/www/js/pages/tennis/controller.js index 976e5f42536722d1a5f49c7a9ccb9fdb7dc59727..b0de11fb6997ee9187f3854dd391aeb3d8ebcbb8 100644 --- a/www/js/pages/tennis/controller.js +++ b/www/js/pages/tennis/controller.js @@ -121,7 +121,7 @@ prediction.prediction_win_first, prediction.prediction_win_second ]; - percentages.sort(); + percentages.sort(function(a, b){return a-b}); if (percentages.indexOf(value) === 1) { return "main-prediction"; } @@ -154,7 +154,7 @@ 'green-tick' ]; - percentages.sort(); + percentages.sort(function(a, b){return a-b}); var predictionWin = null; if (prediction.winner) { predictionWin = prediction.prediction_win_second;