rem: treeView.selectedColumn = ArrayOfTreeCols[i].getAttribute( "id" ); treeView.sortDirection = ArrayOfTreeCols[i].getAttribute("sortDirection"); 
add: toDoTreeView.selectedColumn = ArrayOfTreeCols[i].getAttribute( "id" ); toDoTreeView.sortDirection = ArrayOfTreeCols[i].getAttribute("sortDirection"); 
context: function refreshToDoTree( taskArray ){   if( taskArray === false )      taskArray = getTaskTable();   gTaskArray = taskArray;   toDoTreeView.rowCount = gTaskArray.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");         gTaskArray.sort(sortTasks);         break;      }   }   document.getElementById( ToDoUnifinderTreeName ).view = toDoTreeView;   document.getElementById( ToDoUnifinderTreeName ).taskView = new calendarTaskView( gTaskArray );}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/5094ad3490b6f333237991e9508afa034859fc80/unifinderToDo.js/buggy/calendar/resources/content/unifinderToDo.js