How to sort generated documentation index

Hi Team,

I’m generating documentation for my app but when I include the index list using {index} in my index.md the list is out of order. Any ideas how I can get sort it in the order I want?

E.g:
index.md

##Contents

{index}

index.txt

introduction
jobs
shedule

Result of www.mypage.com/docs

Contents

1. Jobs
2. Introduction
3. Schedule

You guidance will be most appreciated.

Using this guide

https://frappe.io/docs/user/en/guides/app-development/generating-docs