Order in SearchResultsPortlet in Liferay 7.2

Iñigo Boyano, modified 5 Years ago. Junior Member Posts: 96 Join Date: 2/4/14 Recent Posts
Hi, 
By default i've seen that the SearchResultsPortlet shows the results in created Date ascending order, the first JournalArticle created is the first content shown.
I need to display those results in a inverse order, the last journalArticles created have to appear in the first place.
I've searched above for the configuration of the portlet and i didn´t see something to change the order in which the results are shown.Is there any configuration to setup the journalArticle order in that portlet or in other case i have to develop and extension of the core?

Kind regards, 

Iñigo
thumbnail
Mohammed Yasin, modified 5 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
Hi ,
There is Sort Portlet for Search which can be used for sorting the result you can refer below
https://portal.liferay.dev/docs/7-2/user/-/knowledge_base/u/sorting-search-results-with-the-sort-widget
Iñigo Boyano, modified 5 Years ago. Junior Member Posts: 96 Join Date: 2/4/14 Recent Posts
Hi Mohammed, 
Thanks for your answer.
This portlet sort my results, but, it is possible to show the results sorted when the page is loaded?.
Although i configure the field created in the first place of the portlet, the results are shown unsorted.
Thanks
Iñigo Boyano, modified 5 Years ago. Junior Member Posts: 96 Join Date: 2/4/14 Recent Posts
Any other solution for this problem?
I have seen that  SortPortlet put the following parameter "sort=createDate-" in the URL to sort the results, but i need those results are shown sorted in the render of the page.It is possible to set this parameter in the page render, before the page was loaded?
Kind regards, 
Chanakya P, modified 2 Years ago. Junior Member Posts: 72 Join Date: 2/17/14 Recent Posts

HI,

I also need same solution in Liferay 7.0 version.

In Liferay 7 there is no sortportlet.

I need to display results in a inverse order, the last created document should appear in the first place.

how to achieve in  Liferay 7.0 version.