return L.Class.extend({
olsrview: olsrview,
+ etx_color: etx_color,
+ snr_colors: snr_colors,
});
\ No newline at end of file
if (a.proto === b.proto) {
return a.genmask < b.genmask;
} else {
- return a.proto < b.proto;
+ return a.proto < b.proto ? -1 : a.proto > b.proto ? 1 : 0;
}
}
let modifiedData;
if (a.proto === b.proto) {
return a.linkCost < b.linkCost;
} else {
- return a.proto < b.proto;
+ return a.proto < b.proto ? -1 : a.proto > b.proto ? 1 : 0;
}
}
const rv = [];
for (let link of neigh_res) {
link.linkCost = (link.linkCost).toFixed(3) || 0;
- if (link.linkCost === 4194304) {
+ if (link.linkCost == 4194304) {
link.linkCost = 0;
}
const color = etx_color(link.linkCost);
if (a.proto === b.proto) {
return a.rtpMetricCost < b.rtpMetricCost;
} else {
- return a.proto < b.proto;
+ return a.proto < b.proto ? -1 : a.proto > b.proto ? 1 : 0;
}
}
let modifiedData;
if (a.proto === b.proto) {
return a.tcEdgeCost < b.tcEdgeCost;
} else {
- return a.proto < b.proto;
+ return a.proto < b.proto ? -1 : a.proto > b.proto ? 1 : 0;
}
}