add:   var sortedCol; switch (column) { case "rawHost": sortedCol = document.getElementById("siteCol"); break; case "capability": sortedCol = document.getElementById("capabilityCol"); break; } if (lastPermissionSortAscending) sortedCol.setAttribute("sortDirection", "descending"); else sortedCol.setAttribute("sortDirection", "ascending");   var currentCol = sortedCol.parentNode.firstChild; while (currentCol) { if (currentCol != sortedCol && currentCol.localName == "treecol") currentCol.removeAttribute("sortDirection"); currentCol = currentCol.nextSibling; } 
context: function PermissionColumnSort(column, updateSelection) {  lastPermissionSortAscending =    SortTree(permissionsTree, permissionsTreeView, permissions,                 column, lastPermissionSortColumn, lastPermissionSortAscending,                  updateSelection);  lastPermissionSortColumn = column;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b1bade834e41cebed916a608ae69a6c384e58882/cookieViewer.js/buggy/xpfe/components/permissions/content/cookieViewer.js