sort by lastseen

This commit is contained in:
Jakob Ketterl 2019-07-11 20:53:59 +02:00
parent d606c85443
commit 8edc7c1374

View File

@ -181,6 +181,8 @@
return {callsign: callsign, locator: r.locator, lastseen: r.lastseen}
}).filter(function(d) {
return d.locator == locator;
}).sort(function(a, b){
return b.lastseen - a.lastseen;
});
infowindow.setContent(
'<h3>Locator: ' + locator + '</h3>' +