rem: if (colID == gSortedColumn && gFastIndex == gPrefArray.length) { 
add: if (col.id == gSortedColumn && gFastIndex == gPrefArray.length) { 
context:   cycleHeader: function(colID, elt) {    var index = this.selection.currentIndex;    if (colID == gSortedColumn)      gSortDirection = -gSortDirection;    if (colID == gSortedColumn && gFastIndex == gPrefArray.length) {      gPrefArray.reverse();      if (gPrefView != gPrefArray)        gPrefView.reverse();      if (index >= 0)        index = gPrefView.length - index - 1;    }    else {      var pref = null;      if (index >= 0) {        if (gPrefArray != gPrefView)          index = gPrefView.length - index - 1;        else          pref = gPrefArray[index];      }      var old = document.getElementById(gSortedColumn);      old.setAttribute("sortDirection", "");      gPrefArray.sort(gSortFunction = gSortFunctions[colID]);      if (gPrefView != gPrefArray) {        if (colID == gSortedColumn)          gPrefView.reverse();        else          gPrefView.sort(gSortFunction);      }      gSortedColumn = colID;      if (pref)        index = getIndexOfPref(pref);    }    elt.setAttribute("sortDirection", gSortDirection > 0 ? "ascending" : "descending");    this.treebox.invalidate();    if (index >= 0) {      this.selection.select(index);      this.treebox.ensureRowIsVisible(index);    }    gFastIndex = gPrefArray.length;  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/c0774a8a5a403bf45c343b8aa94cafe97e704294/config.js/buggy/toolkit/components/viewconfig/content/config.js