Way to re-apply sorting

I’m looking for a way to apply any current sorting in the grid, after updating a row.

I don’t see any methods that reapply the current sorting. Here is what I have so far:

// sorting
grid.sortRows( grid.getSortingState()[0], ‘str’, grid.getSortingState()[1] );

grid.getSortingState() will return something like [5, ‘dsc’], but not ‘str’. So I have to kind of guess there. Anyone know of a way to get a current columns sort type or just resort?

Thanks!

You can try to use the next

var ind = grid.getSortingState()[0]; grid.sortRows( ind , grid.fldSort[ind], grid.getSortingState()[1] );