Archived
1
0

more mod panel stuff

This commit is contained in:
Jeff Becker 2017-11-02 08:43:58 -04:00
parent 75670aa1b7
commit 9ef6d119c3
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -68,6 +68,13 @@ function update_nntpchan_feed_ticker(elem, result_elem) {
elem.children[0].remove(); elem.children[0].remove();
} }
var result = j.result; var result = j.result;
result.sort(function(a, b) {
var aname = a.State.Config.Name;
var bname = a.state.Config.Name;
if(aname > bname) return 1;
else if (aname < bname) return -1;
else return 0;
});
for (var idx = 0; idx < result.length; idx++) { for (var idx = 0; idx < result.length; idx++) {
var item = result[idx]; var item = result[idx];
var entry = document.createElement("div"); var entry = document.createElement("div");