diff --git a/meshview/templates/node.html b/meshview/templates/node.html
index 5807f75..9d13f3f 100644
--- a/meshview/templates/node.html
+++ b/meshview/templates/node.html
@@ -928,8 +928,10 @@ async function loadNeighborTimeSeries() {
return;
}
- // Time-series structure:
- // neighborHistory = { node_id: { name, snr:[...], times:[...] } }
+ // --- FIX: sort packets chronologically (oldest → newest) ---
+ packets.sort((a, b) => (b.import_time_us || 0) - (a.import_time_us || 0));
+
+
const neighborHistory = {};
for (const pkt of packets.reverse()) {