Sachyya sachet
05/18/2023, 10:12 AMJason Bosco
05/18/2023, 3:31 PMsearch.addWidgets([
sortBy({
container: "#sort-by",
items: [
{ label: "Default", value: "products" },
{ label: "Price (asc)", value: "products/sort/price:asc" },
{ label: "Price (desc)", value: "products/sort/price:desc" },
],
}),
]);
I think the first email of the items
array determines which is the default sort by used by instantsearch