Search code examples
templatesbranchsitecoresitecore-workflow

Push Sitecore branch sorting to content


I am trying to change the sort order of some of the content on my pages in Sitecore. The initial order was set up by a branch template, and now I want to modify it.

Modifying the content tab itself reorders the items (using the sort buttons on the shell), but when I modify the branch and publish, it doesn't update the content files' order.

I was wondering if there was a way to push the branch sorting onto the content, without having to modify each content page individually, since there are a lot of pages.

Thank you for your help!


Solution

  • You can do it programmatically by getting the sortorder field value of each branch item and applying to your content tree accordingly.