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){    /* sort the <tree> widget on the column name |sortColName|.  This code     * was basically ripped off some mozilla code that I can't recall at the     * moment.     */    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 "componentcol-contractid":            document.getElementById("componentcol-clsid")                .setAttribute("sortDirection", "natural");            break;        case "componentcol-clsid":            document.getElementById("componentcol-contractid")                .setAttribute("sortDirection", "natural");            break;        case "interfacecol-iname":            document.getElementById("interfacecol-iid")                .setAttribute("sortDirection", "natural");            break;        case "interfacecol-iid":            document.getElementById("interfacecol-iname")                .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()");    }    }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2cd62f503bdc615c6b2a917f09ca8c3578976a3c/cview-handlers.js/clean/extensions/cview/resources/content/cview-handlers.js