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"}]}


    lundi 9 juillet 2018 13:18

Réponses

  • Hi Allen,

    thanks for your resonse. i have manged to fix the issue bascialy it was the cralw issue after running full crawl sorting order started working .

    Ansewer to your question , i was using below search setting to enable custom sorting on serach result web part.

    


    lundi 23 juillet 2018 13:58

Toutes les réponses

  • 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.

    mardi 10 juillet 2018 10:03
  • 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.


    jeudi 19 juillet 2018 02:48
  • Hi Allen,

    thanks for your resonse. i have manged to fix the issue bascialy it was the cralw issue after running full crawl sorting order started working .

    Ansewer to your question , i was using below search setting to enable custom sorting on serach result web part.

    


    lundi 23 juillet 2018 13:58