Developer forum

Forum » Ecommerce - Standard features » Sorting by name using the new index

Sorting by name using the new index

Adrian Ursu
Reply

Hi guys,

I have this site where I am using the new index together with the ProductCatalog module.

It looks like the sorting by titel only works ascending and not descending.

The version we are using is 8.8.1.0

Here is the URL we are using: /image-catalog?sortBy=Name&SortOrder=DESC

This URL worked in the previous version usign the regular index.

Anybody has encounterd this behavior before?

Thanks,

Adrian

 


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Adrian

The sortBy has to be one of the names of the fields in the index. So try sortBy=ProductName&SortOrder=DESC

 
Adrian Ursu
Reply

Hi Nicolai, I belive I tried that already but I will try it again. I have noticed some of the fields in the Product Schema have a (sortable) mention.

And since you seem in the zone, can you also help me out with an asnwer to this post please:http://developer.dynamicweb.com/forum/cms-standard-features/datalists-page-size.aspx

Thanks a lot,

Adrian

 
Nicolai Høeg Pedersen
Reply

Hi Adrian

Yes, if you sort on a field that is analyzed, you cannot be sure what will happen. So need the field unanalyzed to sort it as expected I think.

 
Adrian Ursu
Reply

Thanks a lot Nicolai. This is very useful.

Adrian

 

You must be logged in to post in the forum