I am working with a Grid control, a ListStore, and a BaseListLoader. My code is based on the BeanModel grid sample at http://extjs.com/explorer/#beanmodelgrid.

I've added code so that the grid reloads periodically. Ideally I would like to maintain scroll position, sort column and sort order between loads of new data. I have worked up a mechanism to maintain the scroll position. However I can't seem to get the sort order or sort column state to "stick" between loads. Although visually, the column that was the sort column previous to the reload "appears" to still be the sort column after the new data has loaded (ie the column header has the appearance indicating that it is the sort column), when looking at the data, it is clear that no sorting is taking place.

I suspect it has something to do with specifying a sort on the loader, the store, or both, but I can't seem to figure out the proper way to do this.