Forum Discussion

nksse's avatar
nksse
Copper Contributor
Feb 24, 2023

SharePoint search query sort order

Hi

 

I'm trying to create a simple link for users to click that will show them all the SharePoint sites they have access to. So far I have this:

https://<TENANT>.sharepoint.com/_layouts/15/sharepoint.aspx?q=v=search&contentclass%3ASTS_Site

 

And I was wondering if there was any way to sort the results alphabetically?

 

From the documentation it seems there is a possibility to sort in the query request but I can't find/figure out how that syntax would look
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint#how-to-specify-sorting-in-a-query-request

 

Thanks in advance.

Resources