Properly sort member list on streams page.

(imported from commit 702e78810278584fc8b2e217523ee38ff7907471)
This commit is contained in:
Waseem Daher 2013-02-07 11:59:27 -05:00
parent 87b1c91406
commit 5dfd4485b5

View File

@ -562,7 +562,10 @@ $(function () {
}
return format_member_list_elem(people_dict[elem].full_name, elem);
});
$.each(subscribers.sort(), function (idx, elem) {
$.each(subscribers.sort().reverse(), function (idx, elem) {
// add_to_member_list *prepends* the element,
// so we need to sort in reverse order for it to
// appear in alphabetical order.
add_to_member_list(list, elem);
});
},