rem: const nsIXULSortService = Components.interfaces.nsIXULSortService; const isupports_uri = "@mozilla.org/xul/xul-sort-service;1";  var xulSortService = Components.classes[isupports_uri].getService(nsIXULSortService); if (!xulSortService) 
add: if (!channel || !channel.userList) 
context: function reSortUserlist(node){    const nsIXULSortService = Components.interfaces.nsIXULSortService;    const isupports_uri = "@mozilla.org/xul/xul-sort-service;1";    var xulSortService =        Components.classes[isupports_uri].getService(nsIXULSortService);    if (!xulSortService)        return;    var sortResource;    if (client.prefs["sortUsersByMode"])        sortResource = RES_PFX + "sortname";    else        sortResource = RES_PFX + "unicodeName";    try    {        if ("sort" in xulSortService)            xulSortService.sort(node, sortResource, "ascending");        else            xulSortService.Sort(node, sortResource, "ascending");    }    catch(ex)    {        dd("Exception calling xulSortService.sort()");    }}
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1622/c42ddd634fe755d5b21122300c099405ed7a30d6/static.js/buggy/xul/content/static.js