Sorting/ranking by an attribute string value?

Hi !

I would like to sort results by an attibute string value.
I explain : I have all my records with a string attribute called ‘type’.
‘type’ has only two possible value, “a” or “b”.
And I would like to display first, results with ‘type’=‘b’ at any queries.

Hi @corentin!

You can look into optionalFilters to display your desired records first at query time!

Have a good day