rem: this.selectedColumn = col.id; sortActive = col.element.getAttribute("sortActive"); this.sortDirection = col.element.getAttribute("sortDirection"); 
add:  this.selectedColumn = col.id || col; if (!element) element = col.element; sortActive = element.getAttribute("sortActive"); this.sortDirection = element.getAttribute("sortDirection"); 
context:    cycleHeader : function(col)   {      //dump( "\nin cycle header" );      var sortActive;      var treeCols;         this.selectedColumn = col.id;      sortActive = col.element.getAttribute("sortActive");      this.sortDirection = col.element.getAttribute("sortDirection");         if (sortActive != "true")      {         treeCols = document.getElementsByTagName("treecol");         for (var i = 0; i < treeCols.length; i++)         {            treeCols[i].removeAttribute("sortActive");            treeCols[i].removeAttribute("sortDirection");         }         sortActive = true;         this.sortDirection = "ascending";      }      else      {         sortActive = true;         if (this.sortDirection == "" || this.sortDirection == "descending")         {            this.sortDirection = "ascending";         }         else         {            this.sortDirection = "descending";         }      }      col.element.setAttribute("sortActive", sortActive);      col.element.setAttribute("sortDirection", this.sortDirection);      //dump( "\nabout to sort events "+gEventArray.length );      gEventArray.sort( sortEvents );      //dump( "\nSORTED!");      document.getElementById( UnifinderTreeName ).view = this;   },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2a3de3333582e9b30c9deb0ba45eccbdd5ca74b5/unifinder.js/clean/calendar/resources/content/unifinder.js