Ajutor UI Grid - Sortare randuri cu paginare

Salut,

Nu o sa reproduc problema si aici, am postat pe StackOverflow. Orice solutie/idee este bine-venita.

Link : http://stackoverflow.com/questions/35129218/ui-grid-get-sorted-items-with-pagination

Multumesc

Nu am experienta cu UI-Grid, dar cred ca trebuie sa notifici grid-ul ca s-a schimbat colectia de date.

Ceva de genul : $scope.gridApi.core.notifyDataChange(uiGridConstants.dataChange.ALL) ?

aici mai multe informatii : http://ui-grid.info/docs/#/api/ui.grid.class:Grid

 $scope.add = function () {
      $mdDialog.show({
          controller: function($mdDialog) {
            var data = $scope.identifierVal;
            $mdDialog.hide(data);
          },
          templateUrl: 'add.html',
          parent: angular.element(document.body)
      }).then(function (entry) {
          // Data received when the modal is hidden
          $scope.gridOptions.data.push(entry);
          testService.jumpToGridItem($scope.gridApi, entry);
          $scope.gridApi.core.notifyDataChange(uiGridConstants.dataChange.ALL)
      });
  };

Da, am folosit. Nu ajuta cu nimic in cazul de fata, plus ca teoretic ar trebui pus imediat dupa .push, trebuie facut notify inainte sa fac jump.
Am sapat toata documentatia. Ori imi scapa ceva mie, ori developerilor ui-grid