From 7af79b9f8c0883be10cf46ba8cd2c294d1b39faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Mon, 7 Oct 2024 20:44:51 +0200 Subject: [PATCH] Sort software list in reverse order This should bring the most likely version to the top of the list. --- goosebit/ui/static/js/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goosebit/ui/static/js/util.js b/goosebit/ui/static/js/util.js index dd968687..669e1d2f 100644 --- a/goosebit/ui/static/js/util.js +++ b/goosebit/ui/static/js/util.js @@ -22,7 +22,7 @@ function secondsToRecentDate(t) { async function updateSoftwareSelection(devices = null) { try { - const url = new URL("/ui/bff/software", window.location.origin); + const url = new URL("/ui/bff/software?order[0][dir]=desc&order[0][name]=version", window.location.origin); if (devices != null) { for (const device of devices) { url.searchParams.append("uuids", device.uuid);