rem: return columns[0]; 
add: return columns.item(0); 
context: function find_sort_column(){  var columns = document.getElementsByTagName('treecol');  for (var i = 0; i < columns.length; ++i) {    if (columns[i].getAttribute('sortDirection'))      return columns[i];  }  return columns[0];}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/10a9c8f8597ac9ebd32c64a7c54c72a2d63235ee/nsTreeSorting.js/buggy/xpfe/global/resources/content/nsTreeSorting.js