add: 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; } }  
context: function refreshEventTree( eventArray ){   gEventArray = eventArray;   treeView.rowCount = gEventArray.length;         document.getElementById( UnifinderTreeName ).view = treeView;   document.getElementById( UnifinderTreeName ).eventView = new calendarEventView( eventArray );   //select selected events in the tree.   selectSelectedEventsInTree( false );}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/9ee2b36afbf8cc9976c93cf614ddf4a18eb6a4f4/unifinder.js/clean/calendar/resources/content/unifinder.js