add: lastCookieSortColumn = 'status'; 
context: function loadCookies() {  // load cookies into a table  var enumerator = cookiemanager.enumerator;  var count = 0;  var showPolicyField = false;  while (enumerator.hasMoreElements()) {    var nextCookie = enumerator.getNext();    nextCookie = nextCookie.QueryInterface(Components.interfaces.nsICookie);    var host = nextCookie.host;    if (nextCookie.policy != nsICookie.POLICY_UNKNOWN) {      showPolicyField = true;    }    cookies[count] =      new Cookie(count++, nextCookie.name, nextCookie.value, nextCookie.isDomain, host,                 (host.charAt(0)==".") ? host.substring(1,host.length) : host,                 nextCookie.path, nextCookie.isSecure, nextCookie.expires,                 nextCookie.status, nextCookie.policy);  }  cookiesTreeView.rowCount = cookies.length;  // sort and display the table  cookiesTree.treeBoxObject.view = cookiesTreeView;  if (window.arguments[0] == "cookieManagerFromIcon") { // came here by clicking on cookie icon    // turn off the icon    var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);    observerService.notifyObservers(null, "cookieIcon", "off");    // unhide the status column and sort by reverse order on that column    document.getElementById("statusCol").removeAttribute("hidden");    lastCookieSortAscending = true; // force order to have blanks last instead of vice versa    CookieColumnSort('status');  } else {    // sort by host column    CookieColumnSort('rawHost');  }  // disable "remove all cookies" button if there are no cookies  if (cookies.length == 0) {    document.getElementById("removeAllCookies").setAttribute("disabled","true");  }  // show policy field if at least one cookie has a policy  if (showPolicyField) {    document.getElementById("policyField").removeAttribute("hidden");  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/add18e187daa72da9fc42726920137f7cfb22765/CookieViewer.js/buggy/extensions/wallet/cookieviewer/CookieViewer.js