dashboard: Fix sort on Chrome

This commit is contained in:
nemunaire 2021-09-08 12:40:23 +02:00
parent 08da42e273
commit 7c2bb0df23
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ angular.module("FICApp", ["ngSanitize", "ngAnimate"])
this.push(team);
}
}, $scope.rank);
$scope.rank.sort(function(a,b) { return a.rank > b.rank })
$scope.rank.sort(function(a,b) { return a.rank - b.rank })
$scope.pagesrank = Array(Math.ceil($scope.rank.length / 7)).fill(0).map(function(v, i){ return i; });
});
}