Automatic sort of sidemap

Is it possible to sort the sidebar automatic ( by rule or script) ?
Are the sidebar order index and the name defined to access by a rule.
Thank you

There are lots of terms here that don’t make sense. Are you referring to this?

The name and order are not directly available by a rule. But you can write a rule that interacts with the OH REST API to change properties of pages. But you’ll probably need to capture the messages sent between MainUI in the browser and the server to find the specific JSON that needs to be sent to which REST API endpoint.