fixed sorting direction change

This commit is contained in:
cubedro 2015-04-24 01:48:18 +03:00
parent 13d9283ffc
commit 481ef14532

View File

@ -33,7 +33,7 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
$scope.orderTable = function(predicate, reverse)
{
if(predicate != $scope.predicate)
if(!_.isEqual(predicate, $scope.predicate))
{
$scope.reverse = reverse;
$scope.predicate = predicate;