rem: var sortColumn = gAbResultsTree.getAttribute("sortCol"); var sortDirection = document.getElementById(sortColumn).getAttribute("sortDirection"); var actualSortColumn = SetAbView(uri, false, sortColumn, sortDirection); UpdateSortIndicators(actualSortColumn, sortDirection); 
add: SetAbView(uri, false); 
context: function ChangeDirectoryByURI(uri){  if (!uri)    uri = kPersonalAddressbookURI;  if (gAbView && GetAbViewURI() == uri)    return;    var sortColumn = gAbResultsTree.getAttribute("sortCol");  var sortDirection = document.getElementById(sortColumn).getAttribute("sortDirection");  var actualSortColumn = SetAbView(uri, false, 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()  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/fc12b26082623c1d83657745d442b2d1cbde4d8e/abCommon.js/buggy/mailnews/addrbook/resources/content/abCommon.js