The issue we have is when we add to the store after a sort.
The user sorts a column. Then some time later the user hits a reload button. We then empty the store and add data back into it.
The column still shows a sort icon but the data isn't sorted. So our two options are, clear the sorting so visualy the column matches the data. Or we implemented a little kick as follows after some playing around.
grid.store.removeAll();
grid.store.add(modelRecords);
// Kick the sorting to resort
grid.store.sort(grid.store.sorters);
I was wondering if there was a config to keep sorting after adding data or a method to resort. The above seems to work fine. Maybe that is the prefered way?