Showing posts with label sorting search results. Show all posts
Showing posts with label sorting search results. Show all posts

Saturday, March 2, 2013

SharePoint 2013: Allowing Users to Sort Search Results

In previous versions of SharePoint, the out-of-the-box search results provided links to show results by relevance or modified date. Now, with SharePoint 2013, the results may be sorted by any managed property but there are a few preset values. However, by default, the sort option is not enabled. So to allow your users to sort search results, follow these simple steps:

1) Edit one of the results pages in your search center site and Edit the Search Results web part:
 
2) In the web part tool pane, scroll down and expand the Settings section. Click the Show sort dropdown checkbox:
 

The sort options are controlled by the JSON in the Available sort orders text box. You may modify this to add or remove sort options. Feel free to choose from any of the 600+ managed properties available out-of-the-box.

3) Click OK in the toolpane and check-in the changes of the page.

4) Perform a search. A drop-down appears above the results:


 

Matched Content