ret.push([ o.code, o.title ]);
});
- ret.sort(function(a,b) {
- a[1] > b[1] ? 1 : -1;
+ ret = ret.sort(function(a,b) {
+ if (a[0] == '**') return 1; // other always at end..
+ if (b[0] == '**') return -1; // other always at end..
+ return a[1] > b[1] ? 1 : -1;
});
return ret;