From 4a9927764e00fdd4db3a30546de43e1421a6be9e Mon Sep 17 00:00:00 2001 From: Liam Bigelow <40188355+bglw@users.noreply.github.com> Date: Thu, 30 Nov 2023 08:40:08 +1300 Subject: [PATCH] Fix incorrect sort option handling in the PagefindUI --- pagefind_ui/default/svelte/ui.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pagefind_ui/default/svelte/ui.svelte b/pagefind_ui/default/svelte/ui.svelte index 4e9a9e9f..9825fb83 100644 --- a/pagefind_ui/default/svelte/ui.svelte +++ b/pagefind_ui/default/svelte/ui.svelte @@ -190,7 +190,7 @@ const search_options = { filters }; if (sort && typeof sort === "object") { - search_options[sort] = sort; + search_options.sort = sort; } const results = await pagefind.search(term, search_options); if (search_id === local_search_id) {