rem:  gEventArray.sort( sortEvents );  
add: this.sortStartedTime = new Date().getTime(); gEventArray.sort( compareEvents );  
context:    cycleHeader : function(col, element) // element parameter used in Moz1.7-   {                                    // not in Moz1.8+      //dump( "\nin cycle header" );      var sortActive;      var treeCols;         // Moz1.8 trees require column.id, moz1.7 and earlier trees use column.      this.selectedColumn = col.id || col;        if (!element) element = col.element;  // in Moz1.8+, get element from col      sortActive = element.getAttribute("sortActive");      this.sortDirection = 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";         }      }      element.setAttribute("sortActive", sortActive);      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/b3587f5e87a992a3ba934bedcb2a0e767b70edbf/unifinder.js/buggy/calendar/resources/content/unifinder.js