Skip to content

Commit

Permalink
fix(core): sort priorities were not displaying when 2nd sort was added
Browse files Browse the repository at this point in the history
  • Loading branch information
swalters committed Feb 2, 2016
1 parent e588d59 commit 47c77de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/core/directives/ui-grid-header-cell.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
};
$scope.isSortPriorityVisible = function() {
//show sort priority if column is sorted and there is at least one other sorted column
return $scope.col.sort.priority !== undefined && $scope.grid.columns.some(function(element, index){
return element.sort.priority !== undefined && element !== $scope.col;
return angular.isNumber($scope.col.sort.priority) && $scope.grid.columns.some(function(element, index){
return angular.isNumber(element.sort.priority) && element !== $scope.col;
});
};
$scope.getSortDirectionAriaLabel = function(){
Expand Down

0 comments on commit 47c77de

Please sign in to comment.