rem: gEventArray.sort(sortEvents); 
add: treeView.sortStartedTime = new Date().getTime(); gEventArray.sort(compareEvents); 
context: function refreshEventTree( eventArray ){   gEventArray = eventArray;   treeView.rowCount = gEventArray.length;         var ArrayOfTreeCols = document.getElementById( UnifinderTreeName ).getElementsByTagName( "treecol" );   for( var i = 0; i < ArrayOfTreeCols.length; i++ )   {      if( ArrayOfTreeCols[i].getAttribute( "sortActive" ) == "true" )      {         treeView.selectedColumn = ArrayOfTreeCols[i].getAttribute( "id" );         treeView.sortDirection = ArrayOfTreeCols[i].getAttribute("sortDirection");         gEventArray.sort(sortEvents);         break;      }   }   document.getElementById( UnifinderTreeName ).view = treeView;   document.getElementById( UnifinderTreeName ).eventView = new calendarEventView( eventArray );   //select selected events in the tree.   selectSelectedEventsInTree( false );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b3587f5e87a992a3ba934bedcb2a0e767b70edbf/unifinder.js/buggy/calendar/resources/content/unifinder.js