Developer forum

Forum » CMS - Standard features » Sorting QueryPublisher

Sorting QueryPublisher

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Guys,

I know this subject was brought before but I could not find the answer to it.

I am using 9.2.14 and I am trying to Sort the results published with QueryPublisher module.

I am assuming this means that I need to follow a specific way of defining the fields that I will be trying to use for sorting, just like I do for Products.

My first question though is if it's possible to sort the QueryPublisher results using QueryString Parameters. Something like SortBy=Name&SortOrder=Asc

Thank you,

Adrian


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Maybe the same as this one...

http://doc.dynamicweb.com/forum?M=BasicForum&PID=1605&ThreadID=52829

Votes for this answer: 1
 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Thanks Nicolai.

I knew I have seen it in another post.

For sorting is it possible to use any field that is present in the index? Or Should I create special ones just for sorting?

Thanks,

Adrian

 
Nicolai Pedersen
Reply

You can use any field. But an analyzed field is not good to sort on... "Nicolai Pedersen" is analyzed into 2 tokens, "nicolai" and "pedersen" and hence it makes no sense to sort on that field.

 

You must be logged in to post in the forum