Hi guys,
I have a project where we have added a couple of extra fields using a Schema extender.
I would like to use them for sorting the product list. Similar to how standard DW is using the OrderCount (which is also a property added using Schema extender).
The fields I am trying to use are both Int32 (just like the OrderCount). However, I cannot convince the sorting to work.
I have tried using the field name directly, I have created separate fields in the index based on the field I am trying to use, and I have tried both Int32 and String without any luck.
Moreover, I have tried sorting by one of the default fields (ProductName, Number) and the sorting works. I have created a new field based on the ProductName or Number (just like the NameForSort is created) but it does not seem to work. All my tests were directly on the feed to exclude any template-related logic. The Query does not have any sorting and the ProductCatalogForViewModel does not have any sorting either.
An apparent trivial task has become a real headache.
What am I doing wrong?
The solution is 9.13.14 and Swift (with very few customizations in front-end).
Thank you,
Adrian