> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.carbone.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to change the order of sections in my template?

# Problem 

Your client want to hide/show and change the order of sections in a document dynamically.

# Solution

Create your template containing all your information in a single table, where each row corresponds to a section to be displayed (or not) according to its order number defined in the json. .
For example, this template with 5 rows :
![Template](https://storage.crisp.chat/users/helpdesk/website/f355e91d7615e000/image_1rfy4y2.png)
where the formula  `{d.sectionOrder[i]:ifEQ('sec1'):keep(row)} ` is used to display the 1rst section.

Then, build your json so that the order of the sections to be displayed is specified.
![Json and render](https://storage.crisp.chat/users/helpdesk/website/f355e91d7615e000/image_1d632e2.png)