From 1c05de0af5d4833802d6890103bd926d22318865 Mon Sep 17 00:00:00 2001 From: clerie Date: Mon, 7 Jul 2025 18:07:56 +0200 Subject: [PATCH] Try to sort unrelated legs too --- web/drafting-board.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/drafting-board.js b/web/drafting-board.js index 3ea04df..10e5eca 100644 --- a/web/drafting-board.js +++ b/web/drafting-board.js @@ -89,7 +89,11 @@ export function drawDraftingBoard() { return -1; } } else { - return 0; + if (leg_a.origin_location.departure > leg_b.origin_location.departure) { + return 1; + } else { + return -1; + } } });