Sort on Default Sort Option not working
I am using the Tab component Default Sort Order options to pick -
- Type as "Field"
- Order as say "Ascending"
- Picked a field that is number - "Like say Number of Bedrooms" for example
It does not work - It still seems to be relevance and no effect on ordering
Now, if I use something like
- Type as "Date"
- Oder say "Descending"
- Field - __Updated
It seems working
Do we need to add and do specific steps for sort ordering picked on Default Sort Options to work.
I do see sort being appended to URL params correctly though. I am unsure if I am missing any step or something.
This is a known issue that has been recently noticed and is fixed in the January 17 release. The bug was introduced in June 16 (by myself :-( ).
If you need a default sort by field with one of the versions affected, you can use the GUID of the coresponding field item. This will work. There is probably a format to respect as well.
It seems like there is a delay.
A delay when you do what?
Could be indexing updates on the background.
Indexing and search are 2 different things. Indexing does not affect search performances.
I think I found a way to do this, what I did is force the field name to use coveo helper that will pick the actual coveo field name rather than hard coding it, no matter what I give on Default sort order, I will override on code to use the correct one.
Something like -
CoveoForSitecore.componentsOptions["mirTab"].sort = '@(Model.ToCoveoFieldName("homeNeighborhood")) ascending';