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} return {callsign: callsign, locator: r.locator, lastseen: r.lastseen}
}).filter(function(d) { }).filter(function(d) {
return d.locator == locator; return d.locator == locator;
}).sort(function(a, b){
return b.lastseen - a.lastseen;
}); });
infowindow.setContent( infowindow.setContent(
'<h3>Locator: ' + locator + '</h3>' + '<h3>Locator: ' + locator + '</h3>' +