4

I have a ContentBySearchWebPart configured with this query:

{searchboxquery} Path:http://myCompany.com/sv contentclass:"STS_Site" 

I selected some display template and it looks good. Is it possible to implement some sorting? I would like to show the most populair site collections as first. I mean with populair the most hits/visitors on these site collections.

Swayam Siddha
  • 1,382
  • 11
  • 26
Ola
  • 4,405
  • 26
  • 129
  • 231

1 Answers1

7

In the Sorting tab of the webparts "Change query" menu (you need to enter advanced mode to find the sorting tab) set Sort by to ViewsRecent Descendant.

This will sort your result on the number of views it has had in the last 14 days (the nubmer of views is by default calculated once a day by a timer job)

Robert Lindgren
  • 24,520
  • 12
  • 53
  • 79