rem: const isupports_uri = "@mozilla.org/rdf/xul-sort-service;1"; 
add: const isupports_uri = "@mozilla.org/xul/xul-sort-service;1"; 
context: function onSortCol(sortColName){    const nsIXULSortService = Components.interfaces.nsIXULSortService;    const isupports_uri = "@mozilla.org/rdf/xul-sort-service;1";        var node = document.getElementById(sortColName);    // determine column resource to sort on    var sortResource = node.getAttribute('resource');    if (!node)        return false;     var sortDirection = "ascending";        //node.setAttribute("sortActive", "true");    switch (sortColName)    {        case "usercol-op":            document.getElementById("usercol-voice")                .setAttribute("sortDirection", "natural");            document.getElementById("usercol-nick")                .setAttribute("sortDirection", "natural");            break;        case "usercol-voice":            document.getElementById("usercol-op")                .setAttribute("sortDirection", "natural");            document.getElementById("usercol-nick")                .setAttribute("sortDirection", "natural");            break;        case "usercol-nick":            document.getElementById("usercol-voice")                .setAttribute("sortDirection", "natural");            document.getElementById("usercol-op")                .setAttribute("sortDirection", "natural");            break;    }        var currentDirection = node.getAttribute('sortDirection');        if (currentDirection == "ascending")        sortDirection = "descending";    else if (currentDirection == "descending")        sortDirection = "natural";    else        sortDirection = "ascending";        node.setAttribute ("sortDirection", sortDirection);     var xulSortService =        Components.classes[isupports_uri].getService(nsIXULSortService);    if (!xulSortService)        return false;    try    {        xulSortService.Sort(node, sortResource, sortDirection);    }    catch(ex)    {            //dd("Exception calling xulSortService.Sort()");    }        return false;}
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1622/24efe4f2d51ab477362ead1a883e8123e16bd369/handlers.js/buggy/xul/content/handlers.js