rem: ary.sort();  for (u in ary) if (ary[u] == e.user.nick) break;  if (!this.list) this.list = new CListBox();  if (u < ary.length - 1) { this.list.prepend (e.user.getDecoratedNick(), e.channel.users[ary[u + 1]].getDecoratedNick()); } else this.list.add (e.user.getDecoratedNick());  
context: function my_cjoin (e){    if (userIsMe (e.user))        this.display ("YOU have joined " + e.channel.name, "JOIN", "!ME");    else        this.display(e.user.properNick + " (" + e.user.name + "@" +                     e.user.host + ") has joined " + e.channel.name,                     "JOIN", e.user.nick);    var ary = new Array();        for (var u in this.users)        ary.push (this.users[u].nick);        ary.sort();    for (u in ary)        if (ary[u] == e.user.nick)            break;        if (!this.list)        this.list = new CListBox();    if (u < ary.length - 1)    {        this.list.prepend (e.user.getDecoratedNick(),                           e.channel.users[ary[u + 1]].getDecoratedNick());    }    else        this.list.add (e.user.getDecoratedNick());    updateChannel (e.channel);    }
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/3f34d95584b921bc32d09ecd107ea8b58790c56f/test3-handlers.js/buggy/extensions/irc/xul/tests/test3-handlers.js