Can you reverse the order of sorting for the search results?

Yes, support for the order of sorting is available for the search results within the title and date fields.

To reverse the order give sortdir param value as asc (ascending) as the default sortdir is desc (descending) 

The parameters are as follows:

* &sort=relevance&sortdir=desc - Sort by relevance in descending order
* &sort=relevance&sortdir=asc - Sort by relevance in ascending order
* &sort=date&sortdir=desc - Sort by date in descending order
* &sort=date&sortdir=asc - Sort by date in ascending order
* &sort=alpha&sortdir=asc - Sort by the title in ascending order
* &sort=alpha&sortdir=desc - Sort by the title in descending order



To learn more about SearchBlox please visit our developer document site https://developer.searchblox.com/docs

Have more questions? Submit a request

Comments