useRelevantSort hook provides the logic to build a custom component that controls Algolia’s Relevant Sort feature.
Import
Parameters
This hook does not accept any parameters.Returns
Whether Relevant Sort is currently active (relevancyStrictness > 0).
Whether the results come from a virtual replica.
Whether the search state can be refined.
Function to set the relevancy strictness and trigger a new search.