rem: var dataNode = document.getElementById(uri); var sortColumn = dataNode ? dataNode.getAttribute("sortColumn") : kDefaultSortColumn; var sortDirection = dataNode ? dataNode.getAttribute("sortDirection") : kDefaultAscending; 
add: var sortColumn = gAbResultsTree.getAttribute("sortCol"); var sortDirection = document.getElementById(sortColumn).getAttribute("sortDirection"); 
context: function ChangeDirectoryByURI(uri){  if (!uri)    uri = kPersonalAddressbookURI;  if (gAbView && gAbView.URI == uri)    return;    var dataNode = document.getElementById(uri);  var sortColumn = dataNode ? dataNode.getAttribute("sortColumn") : kDefaultSortColumn;  var sortDirection = dataNode ? dataNode.getAttribute("sortDirection") : kDefaultAscending;    var actualSortColumn = SetAbView(uri, sortColumn, sortDirection);  UpdateSortIndicators(actualSortColumn, sortDirection);    // only select the first card if there is a first card  if (gAbView && gAbView.getCardFromRow(0)) {    SelectFirstCard();  }  else {    // the selection changes if we were switching directories.    ResultsPaneSelectionChanged()  }  return;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/262cd588120d062a6422435a0dff7da316a1b33d/abCommon.js/clean/mailnews/addrbook/resources/content/abCommon.js