If you have a store with multiple sorters a bug occurs in Ext.util.Sortable::createComparator().

Code:



createComparator: function(sorters) {
return sorters && sorters.length ? function(r1, r2) {
var result = sorters[0].sort(r1, r2),
length = sorters.length,
i = 1;


for (; !result && i < length; i++) {
result = sorters[i].sort.call(this, r1, r2); // <--- Bug


// Correct implementation might look like:
var sorter = sorters[i];
result = sorter.sort.call(sorter, r1, r2);
}
return result;
} : function() {
return 0;
};
}