title: How do I update my ng-grid from external sorting function
body: <p>Anyone know how to get ng-grid to update from an external sort function?</p>
  
  <p>I've got userExternalSort set to true.  Then, I have this code (Coffeescript):</p>
  
  <pre><code>$scope.$on 'ngGridEventSorted', (event, data) -&gt;
      console.log "Before sort " + $scope.recs[0].location
  
      $scope.recs.sort (a, b) -&gt;
          if data.directions[0] = "asc"
              return a.location &gt; b.location ? 1 : -1
          else
              return a.location &gt; b.location ? -1 : 1
  
      console.log "After sort " + $scope.recs[0].location
  </code></pre>
  
  <p>My function actually does sort.  However, ng-grid never updates.  I've tried $scope.$apply() to no avail -- it's already in a $apply.</p>
  
  <p>Thanks.</p>