more
This commit is contained in:
parent
9ef6d119c3
commit
b25ce88232
@ -69,11 +69,13 @@ function update_nntpchan_feed_ticker(elem, result_elem) {
|
|||||||
}
|
}
|
||||||
var result = j.result;
|
var result = j.result;
|
||||||
result.sort(function(a, b) {
|
result.sort(function(a, b) {
|
||||||
|
if(a && b) {
|
||||||
var aname = a.State.Config.Name;
|
var aname = a.State.Config.Name;
|
||||||
var bname = a.state.Config.Name;
|
var bname = b.state.Config.Name;
|
||||||
if(aname > bname) return 1;
|
if(aname > bname) return 1;
|
||||||
else if (aname < bname) return -1;
|
else if (aname < bname) return -1;
|
||||||
else return 0;
|
else return 0;
|
||||||
|
} else return -1;
|
||||||
});
|
});
|
||||||
for (var idx = 0; idx < result.length; idx++) {
|
for (var idx = 0; idx < result.length; idx++) {
|
||||||
var item = result[idx];
|
var item = result[idx];
|
||||||
|
Reference in New Issue
Block a user