Sort by Title in your Highlighted Content web part in SharePoint

Yesterday I was asked about how to sort Documents in the Highlighted Content web part by the Title property. To sort by Title you will have to go through some extra steps.

SharePoint Search web parts

First I would like to take you through some history.

In the year 2016, I wrote a blog post about making the Title field sortable in the classic SharePoint search web parts. And for the Highlighted content web part we have to roughly go through the same steps.

SharePoint Search hasn’t changed very much and the important thing to notice is that the Title Property is still not sortable.

Sort by Title in your Highlighted Content web part in SharePoint Microsoft Office 365, Microsoft SharePoint Online image 16

So when you try to configure the Highlighted Content web part the Title property will not appear.

Sort by Title not available

And you still can’t make the Title sortable

Make the Sort by Title work

First of all I’m going to have a look at the Title Managed property. This property is mapped to quite a few crawled properties.

Sort by Title in your Highlighted Content web part in SharePoint Microsoft Office 365, Microsoft SharePoint Online image 19

Using the above I would like to create a new mapped property and make it Sortable …

Sort by Title in your Highlighted Content web part in SharePoint Microsoft Office 365, Microsoft SharePoint Online image 20

But the Sortable option here is also not enabled.

Sort by Title in your Highlighted Content web part in SharePoint Microsoft Office 365, Microsoft SharePoint Online image 18

Back to my post from 6 years ago.

Using RefinableString Properties

In the managed properties there are pre-created properties that are sortable, but not mapped. We are going to make sue of these.

Sort by Title in your Highlighted Content web part in SharePoint Microsoft Office 365, Microsoft SharePoint Online image 21

So first pick one of the refinable string properties that isn’t yet in use. I’m going to use RefinableString00

Now edit this property and all the way at the bottom of the settings you will find the following place to add mappings.

Sort by Title in your Highlighted Content web part in SharePoint Microsoft Office 365, Microsoft SharePoint Online image 22

In this truly horrible UI, add the following properties:

  • Title
  • MetdataExtractorTitle
  • TermTitle
  • ows_BaseName
  • and all the other properties found withing the Title Managed Property

Once that is done we have a managed property.

Sort by Title in your Highlighted Content web part in SharePoint Microsoft Office 365, Microsoft SharePoint Online image 23

Now we can go back to the Highlighted Content web part. But as you try to find RefinableString00 you will very quick discover that this property is still not available. SharePoint is being ‘clever’ as the property was sortable in the part but not used it is not available to search based web parts.

Now go to your site settings and find the option Search and Offline Availability

Sort by Title in your Highlighted Content web part in SharePoint Microsoft Office 365, Microsoft SharePoint Online image 24

And hit the Reindex site button!

Now wait a little while as the reindexing starts. This should be quite quickly.

Sort by Title in your Highlighted Content web part in SharePoint Microsoft Office 365, Microsoft SharePoint Online image 25

And now the RefinableString00 property is available to be selected and my Documents are sorted by the Title.

Continue Reading Pieter Veenstra’s Article on their blog

Sort by Title in your Highlighted Content web part in SharePoint

Yesterday I was asked about how to sort Documents in the Highlighted Content web part by the Title property. To sort by Title you will have to go through some extra steps. First I would like to take you through some history.

Blog Syndicated with Pieter Veenstra’s Permission

Author: Pieter Veenstra

Share This Post On
Share via
Copy link
Powered by Social Snap