dashboard: sort teams before displaying rank
This commit is contained in:
parent
0536da2472
commit
ca8bac1ac8
|
@ -156,6 +156,7 @@ angular.module("FICApp", ["ngSanitize", "ngAnimate"])
|
|||
this.push(team);
|
||||
}
|
||||
}, $scope.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; });
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user