rem: if (gAbView) { var node = document.getElementById(gAbView.URI); if (node) { sortDirection = node.getAttribute("sortDirection"); } if (sortDirection == kDefaultDescending) 
add: if (currentDirection == kDefaultDescending) 
context: function AbResultsPaneOnClick(event){    // we only care about button 0 (left click) events    if (event.button != 0) return;    // all we need to worry about here is double clicks    // and column header clicks.    //    // we get in here for clicks on the "treecol" (headers)    // and the "scrollbarbutton" (scrollbar buttons)    // we don't want those events to cause a "double click"    var t = event.originalTarget;    if (t.localName == "treecol") {      var sortDirection = kDefaultDescending;      if (gAbView) {        var node = document.getElementById(gAbView.URI);        if (node) {          sortDirection = node.getAttribute("sortDirection");        }        if (sortDirection == kDefaultDescending)          sortDirection = kDefaultAscending;        else           sortDirection = kDefaultDescending;      }      SortAndUpdateIndicators(t.id, sortDirection);    }    else if (t.localName == "treechildren") {       var row = new Object;       var colID = new Object;       var childElt = new Object;       // figure out what cell the click was in       gAbResultsTree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, colID, childElt);       if (row.value == -1)         return;       if (event.detail == 2) {         AbResultsPaneDoubleClick(gAbView.getCardFromRow(row.value));       }       else {         UpdateCardView();       }    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/262cd588120d062a6422435a0dff7da316a1b33d/abResultsPane.js/clean/mailnews/addrbook/resources/content/abResultsPane.js