Fix order of stacks

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-05-24 16:12:37 +02:00
parent f2dcede923
commit 04108835a6

View File

@@ -88,7 +88,7 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
if ($scope.stacks === undefined) if ($scope.stacks === undefined)
return; return;
angular.copy(StackService.getData(), $scope.stacks); angular.copy(StackService.getData(), $scope.stacks);
$scope.stacks = $filter('orderBy')($scope.stacks, order); $scope.stacks = $filter('orderBy')($scope.stacks, 'order');
angular.forEach($scope.stacks, function (value, key) { angular.forEach($scope.stacks, function (value, key) {
var cards = $filter('cardSearchFilter')(value.cards, text); var cards = $filter('cardSearchFilter')(value.cards, text);
cards = $filter('orderBy')(cards, order); cards = $filter('orderBy')(cards, order);