when i try to sort the data while clicking on column header, data is not sorting when i click in first column header, the data is sorting only for first two columns, could anybody knows where is am wrong actually! this is my controller code `var orderBy = $filter('orderBy');
$scope.gridTestData = [{ "firstname": "john", "lastname": "Jackson", "gender": "M", "status": "1" }, { "firstname": "jr", "lastname": "Jackson", "gender": "F", "status": "0" }, { "firstname": "robort", "lastname": "jr", "gender": "M", "status": "1" }];
$scope.order = function(predicate) {
$scope.predicate = predicate;
$scope.reverse = ($scope.predicate === predicate) ? !$scope.reverse : false;
$scope.gridTestData = orderBy($scope.gridTestData, predicate, $scope.reverse);
};
$scope.order('age', true);`