diff --git a/flex.sqlite-journal b/flex.sqlite-journal deleted file mode 100644 index a5f868f..0000000 Binary files a/flex.sqlite-journal and /dev/null differ diff --git a/frontend/src/components/WatchlistTab.svelte b/frontend/src/components/WatchlistTab.svelte index c3b1d2a..ddf30fb 100644 --- a/frontend/src/components/WatchlistTab.svelte +++ b/frontend/src/components/WatchlistTab.svelte @@ -76,7 +76,15 @@ } function getMatchingSpotsForCallsign(callsign) { - return watchlistSpots.filter(s => s.dx === callsign || s.dx.startsWith(callsign)); + const spots = watchlistSpots.filter(s => s.dx === callsign || s.dx.startsWith(callsign)); + + // ✅ Trier les spots par heure décroissante (plus récent en premier) + return spots.sort((a, b) => { + // Comparer les heures UTC (format "HH:MM") + const timeA = a.utcTime || "00:00"; + const timeB = b.utcTime || "00:00"; + return timeB.localeCompare(timeA); + }); } async function addToWatchlist() {