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) {