From 257f8e623e3a21d12831dc7634aea86f29e31d2e Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Tue, 25 Nov 2025 11:54:08 +0000 Subject: [PATCH] add sortBy=noSort for query flags fixes: https://github.com/wiedehopf/tar1090/issues/409 --- README-query.md | 2 +- html/script.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README-query.md b/README-query.md index 79afeca..1beec75 100644 --- a/README-query.md +++ b/README-query.md @@ -23,7 +23,7 @@ - filterIcao=^a - filter icao that start with a (escape with %5Ea). - filterSources=adsb,uat,adsr,mlat,tisb,modeS - filter planes by source type. - filterDbFlag=military,pia,ladd - filter planes by the db flags. -- sortBy=column - (possible values: icao, flag, flight, registration, aircraft_type, squawk, altitude, speed, vert_rate, distance, track, msgs, seen, rssi, lat, lon, data_source, military, ws, wd +- sortBy=column - (possible values: icao, flag, flight, registration, aircraft_type, squawk, altitude, speed, vert_rate, distance, track, msgs, seen, rssi, lat, lon, data_source, military, ws, wd, noSort) - sortByReverse - reverse the sorting specified using sortBy There is a setting in the webinterface to update the URL according to used filters, this can be simpler than building the query string by hand. diff --git a/html/script.js b/html/script.js index 18b1b09..1071b5b 100644 --- a/html/script.js +++ b/html/script.js @@ -6991,7 +6991,9 @@ function initSitePos() { if (initSitePosFirstRun) { initSitePosFirstRun = false; const sortBy = usp.get('sortBy'); - if (sortBy) { + if (sortBy == "nosort" ) { + // no sorting + } else if (sortBy) { TAR.planeMan.ascending = true; TAR.planeMan.cols[sortBy].sort(); if (usp.has('sortByReverse')) {