Hi,
maybe I am missing something but TreeStore.sort(String field, SortDir sortDir) does not do anything.
Store defines:
Code:
public void sort(String field, SortDir sortDir) {
sortInfo.setSortField(field);
sortInfo.setSortDir(sortDir);
applySort();
}
...
protected void applySort() {
}
but TreeStore has a different signature for applySort:
Code:
protected void applySort(List<M> list) {
if (storeSorter != null) {
Collections.sort(list, new Comparator<M>() {
public int compare(M m1, M m2) {
return storeSorter.compare(TreeStore.this, m1, m2, sortInfo.getSortField());
}
});
}
}
applySort(List) is called in onLoad() of TreeStore, however it is not working for me either...
any ideas?