Sorting list by custom sort order of term set?


  • I've set up my term set with a custom sort order but I can't manage to get my list views to sort by it. They continue to sort alphabetically. Is this expected behavior?

    Thursday, August 14, 2014 11:17 AM


All replies

  • Hi,

    Can you please elaborate little bit  about the question to get the specific solution, if I understand clear your  list view mean the view of SharePoint list so if it is custom list view than we have the out of box functionality to sort the items as per our requirements.



    Krishana Kumar

    Thursday, August 14, 2014 9:18 PM
  • Hi Krishana,

    Thanks for your response. What I'm trying to do is to sort a content query web part according to a custom sort order I've set up in my term set. But no matter how I try, when I sort on my metadata field, it keeps sorting the terms in alphabetical order. But in the "edit properties" pages of items in the picker tool for the term set, the terms show up in my custom sort order.


    Friday, August 15, 2014 7:26 AM
  • Hi,

    This you cannot get out of the box, you need to customize the xslt, You can use the XSLT <xsl:sort> element to customize your sort order.

    You’re ItemStyle.xsl and ContentQueryMain.xsl handles the rendering of of the data fetched by the CQEWP. Here is nice article describes how to customize the xslt

    Krishana Kumar

    Wednesday, August 20, 2014 7:14 AM