Hi, I am currently working on the sorting for our ...
# community-help
d
Hi, I am currently working on the sorting for our app and I am using the
_eval
function to sort specific result items. Now I am facing an issue where I need 2 of these functions so the sorting works as I want. Is there a way to have multiple expressions inside
_eval
as I cannot use multiple eval() in the _sort_by_ property? I noticed that I can add multiple conditions, separated by a comma but the result is not in the expected order. Can someone give me a hint how I can achieve the desired effect?
Copy code
filter {
  q: '*',
  sort_by: '_eval(petFriendly:true, open: true):desc, searchScore:desc',
  filter_by: 'coordinates:(49.627869,6.153422, 250 km)',
  per_page: 25
}