rem: var columns = document.getElementsByTagName('outlinercol'); 
add: var columns = document.getElementsByTagName('treecol'); 
context: function update_sort_menuitems(column, direction){  var unsorted_menuitem = document.getElementById("unsorted_menuitem");  var sort_ascending = document.getElementById('sort_ascending');  var sort_descending = document.getElementById('sort_descending');  // as this function may be called from various places, including the  // bookmarks sidebar panel (which doesn't have any menu items)  // ensure that the document contains the elements  if ((!unsorted_menuitem) || (!sort_ascending) || (!sort_descending))    return;  if (direction == "natural") {    unsorted_menuitem.setAttribute('checked','true');    sort_ascending.setAttribute('disabled','true');    sort_descending.setAttribute('disabled','true');    sort_ascending.removeAttribute('checked');    sort_descending.removeAttribute('checked');  } else {    sort_ascending.removeAttribute('disabled');    sort_descending.removeAttribute('disabled');    if (direction == "ascending") {      sort_ascending.setAttribute('checked','true');    } else {      sort_descending.setAttribute('checked','true');    }    var columns = document.getElementsByTagName('outlinercol');    var i = 0;    var column_node = columns[i];    var column_name = column.id;    var menuitem = document.getElementById('fill_after_this_node');    menuitem = menuitem.nextSibling    while (1) {      var name = menuitem.getAttribute('column_id');      if (!name) break;      if (column_name == name) {        menuitem.setAttribute('checked', 'true');        break;      }      menuitem = menuitem.nextSibling;      column_node = columns[++i];      if (column_node && column_node.tagName == "splitter") {        column_node = columns[++i];      }    }  }  enable_sort_menuitems();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/nsTreeSorting.js/clean/xpfe/global/resources/content/nsTreeSorting.js