Custom items order in Search & Discovery filters page

Our plugin is using Search & Discovery to filter the items via a custom product_id Metafield - this implies every single filtered item is present in the url.
However, we also need to control the order in which these filtered items are displayed.
Currently, Search & Discovery does not take into account the order we add the product_ids in the URL.
How can we disable Sort by (recommended, price, etc) and add our own criteria that controls what items the user sees first?

Just pass the sort_by parameter in the URL along with the filters.

Thank you for your answer!
We do believe however that there is nothing we can sort_by, as we determine the score for each items.

Our plugin offers the best clothes recommendations to a user based on their stylistic profile. Upon finishing their experience in our iframe, we redirect them to a filtered page where we display the best items that suit them best.

We need two functionalities: filter and sort.
For now, we use Search & Discovery to filter by product_id(SKU), as we recommend a set of individual items. Moreover, for each user profile, we determin a match score between the user and the items.
A certain dress might be a 96% match for a user, hence they’ll see it among the first results, or a 70% match for another user, hence seeing it amongst the last.

What we want to do is to display the best matches first, and this is where we hit a wall with Search & Discovery.

We’re not necessarily conditioned to use S&D, we’d just like to know if there is anything we can do to get this feature done, or if there is another alternative that we can try, or if we need to implement a completely new filtering functionality with our application?

This functionality doesn’t exist in S&D. If you require it you’ll either need to build it custom or use a platform like Algolia.

Thank you for the info!

Do you happen to know where we can possibly find documentation on how to do that? Our team did a brief research and they couldn’t find anything about server-side product filtering implementation with Shopify.
Thanks!