rem: const nsIXULSortService = Components.interfaces.nsIXULSortService; const isupports_uri = "@mozilla.org/xul/xul-sort-service;1"; 
add:  if (("currentObject" in client) && client.currentObject && client.currentObject.TYPE == "IRCChannel") { chan = client.currentObject; chan.userlistSelection = getSelectedNicknames(node, chan); } reSortUserlist(node); 
context: function updateUserList(){    var node;    var sortDirection;    node = document.getElementById("user-list");    if (!node.view)        return;    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 + "nick";    try    {        if ("sort" in xulSortService)            xulSortService.sort(node, sortResource, "ascending");        else            xulSortService.Sort(node, sortResource, "ascending");    }    catch(ex)    {        dd("Exception calling xulSortService.sort()");    }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/b7e3890899043c50cc9416261ebb60084772c5c7/static.js/buggy/extensions/irc/xul/content/static.js