rem: 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()"); } 
add:  if (chan) setSelectedNicknames(node, client.currentObject.userlistSelection); 
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: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/f84e18cb5506c37e4d5135f484c15c421df918f4/static.js/clean/xul/content/static.js