Add test for sort order in the nick list.

(this also updates nick_list_test.js, so it depended on double_click_chat being merged)