Hi Community !
I'm developing a Groovy Script on a transition on a workflow. During the transition, I show a screen where the user can select some elements from a checklist (custom field). All of this to create child issues automatically.
Expected behaviour
I expect the script to create child issues and then in the parent to see them sorted in order of creation.
Actual behaviour
When I do the transition the script is ran successfully and issues created in the right order (I can see that with the KEY) but they are shown randomly, even not by name or something.
There is also something strange happening, when I test the script against an issue wihtin the editor it works fine, but in production like, it's chaotic. Like shown in the screenshot below:

You can find the script here: https://github.com/dlepaux/groovy/blob/main/script.groovy
I believe the script is well documented by comments but if you have any question let me know.