Sidebar Filter/Facet Product Type and Tags sort manually

Hi there,
By default this app generates product type and tags and sorted top 10 from highest to lowest.
My question is… is there available option to sort it manually?

Thanks

Hi @sandrojordanmonte, can you precise us what app you are talking about? Please give us more context for us to be able to give you support. Thanks!

It is Algolia search app for Shopify. The sidebar facet product type and tags and sorted top 10 from highest to lowest.
My question is… is there available option to sort it manually?

Like in screenshot the sort order instead from highest to lowest hit, I want sorted manualy.

Capture

This cannot be done directly without digging into the code.
If you’re comfortable with JavaScript, you can open algolia_facets.js.liquid, which is the file handling the facets logic of the Shopify app.

In this file, you’ll see that each facet can be added a sort function:

    if (algolia.facetSortFunctions[facet.name]) {
      params.sortBy = algolia.facetSortFunctions[facet.name];
    }

You can add your own custom function in this file, just after the code above:

    if (facet.name === 'tags') {
      params.sortBy = yourCustomSortFunction();
    }