From b6ce851e27d75e68dfbda44d7f28e3873e055c08 Mon Sep 17 00:00:00 2001 From: Jon Pentland Date: Thu, 20 Jun 2024 09:38:51 +0100 Subject: [PATCH] Use a value for 'relevance' when sorting search. Otherwise, volto default is to sort by effective date. --- .../volto/components/manage/Blocks/Search/components/SortOn.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/customizations/volto/components/manage/Blocks/Search/components/SortOn.jsx b/src/customizations/volto/components/manage/Blocks/Search/components/SortOn.jsx index 8ca2e07c..b6b1c902 100644 --- a/src/customizations/volto/components/manage/Blocks/Search/components/SortOn.jsx +++ b/src/customizations/volto/components/manage/Blocks/Search/components/SortOn.jsx @@ -41,7 +41,7 @@ const SortOn = (props) => { : intl.formatMessage(messages.unsorted); const options = [ - { value: '', label: noValueLabel }, + { value: 'relevance', label: noValueLabel }, ...sortOnOptions.map((k) => ({ value: k, label: k === '' ? noValueLabel : sortable_indexes[k]?.title || k,