UI-Grid Angularjs,获取排序字段?

UI-Grid Angularjs, get the sorted fields?

我为 ng-grid ==> getSortModel() 找到了这个选项,但没有为 http://ui-grid.info/.

有人知道如何使用 jquery 或某些自定义 javascript 从网格和 nog 中获取这些值以实际获取列 header 中的值吗?

我知道的唯一方法是:迭代所有列,获取过滤器:

$scope.gridOptions.columnDefs.forEach(function (c) {
var term = c.filter.term
}