From e9969e6d85c17d73d013dfbeca94d3b227b24341 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Wed, 23 Oct 2024 21:42:58 +0100 Subject: [PATCH] sched interface: rank app-alarms to the bottom --- apps/sched/interface.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/sched/interface.html b/apps/sched/interface.html index 185e9034fe..fa41325746 100644 --- a/apps/sched/interface.html +++ b/apps/sched/interface.html @@ -331,6 +331,10 @@ alarms.sort((a, b) => { let x; + // move app specific alarms to the bottom + x = !!a.appid - !!b.appid; + if(x) return x; + x = !!b.date - !!a.date; if(x) return x;