if (this.multiSort) {
// update the sortOrder
var so = [];
- Roo.each(cm.config, function(c,i) {
- if ((typeof(dm.sortToggle[c.dataIndex]) == 'undefined') && (index != i)) {
+ for(var i = 0; i < cm.config.length; i++ ) {
+
+ if ((typeof(dm.sortToggle[cm.config[i].dataIndex]) == 'undefined') && (index != i)) {
return; // dont' bother, it's not in sort list or being set.
}
- so.push(c.dataIndex);
+
+ so.push(cm.config[i].dataIndex);
});
dm.sortOrder = so;
}