How do I order Low Search results by category name?
I have entries containing locations of buildings. They are assigned to categories for town and county. I'm trying to show the results ordered by the county category name, then town category name. I see in the docs how to order by entry field but not category.
Is this possible? I did set up a shortcut so if there are appropriate parameters I can add can you point me to them?
Thanks.
Replies
Low 22 Jun 2017 14:07
I'm afraid that's -- just like the native entries tag -- not possible. You can imagine the difficulty here when an entry has multiple categories across multiple groups.
You can only order by these fields and, if a Low Search filter allows for it, something custom like score or distance.
smartpill 22 Jun 2017 14:14
Hmmm, I tried setting the weight in the Collection for those categories to 3 and 2 with all the rest of the fields to 1. Is there any way to enforce that order?