From 92c5cef5a1fb1e8792ef6fd90713b8e58839e6da Mon Sep 17 00:00:00 2001 From: secondl1ght Date: Wed, 22 May 2024 14:28:32 -0600 Subject: [PATCH] sort boosted merchants by longest asc --- src/components/AreaMerchantHighlights.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AreaMerchantHighlights.svelte b/src/components/AreaMerchantHighlights.svelte index 3195209..a36ed9f 100644 --- a/src/components/AreaMerchantHighlights.svelte +++ b/src/components/AreaMerchantHighlights.svelte @@ -12,7 +12,7 @@ .filter((e) => isBoosted(e)) .toSorted( (a, b) => - Date.parse(a.tags['boost:expires'] || '') - Date.parse(b.tags['boost:expires'] || '') + Date.parse(b.tags['boost:expires'] || '') - Date.parse(a.tags['boost:expires'] || '') ); $: latest =