none
sharepoint 2013 Manage property sort order not working

    Question

  • I just added one search result web part and udated sort json setting as below 

    [{"name":"Submitted(Older first)","sorts":[{"p":"SubmittedDateOWSDATE","d":0}]},{"name":"Submitted(Newer first)","sorts":[{"p":"SubmittedDateOWSDATE","d":1}]}]

    unfortunately both options are sorting in ascending order . its not changin the sort order but i can see change in the url based on dropdown change as below

    https://siteurl/SearchResults.aspx?k=test#Default={"k":"test","o":[{"d":0,"p":"SubmittedDateOWSDATE"}]}

    https://siteurl/SearchResults.aspx?k=test#Default={"k":"test","o":[{"d":1,"p":"SubmittedDateOWSDATE"}]}


    Monday, July 9, 2018 1:18 PM

All replies

  • Hi, 

    Do you mean your sorting only work in ascending order? What do you mean about "its not changin the sort order but i can see change in the url based on dropdown change"? Please provide some screenshots for helping us solving your issue.

    Please confirm, if this managed property is enabled for sorting in the Search Service Application. Go to SSA > Search Schema > Managed Properties > Search for this managed property > Sorting Enabled.

    Are you also using the sorting section when changing query? 

    Also check if below article is useful to you:

    https://www.eliostruyf.com/add-sorting-display-templates/ 

    Best regards,

    Allen Bai


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Tuesday, July 10, 2018 10:03 AM
  • Hi,

    How are things going? Is there any update on your issue?

    Best regards,

    Allen Bai



    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.


    Thursday, July 19, 2018 2:48 AM