We would like to preserve the order of the Table of Contents (TOC) when different heading levels are added. For instance, when multiple H3 headings are present, they appear in the correct order. However, if H4 headings are added after H3, they get indented, disrupting the overall sequence. Our goal is to maintain the order of the headings in the TOC, even when different heading levels (like H3 and H4) are included.