How To Sort Prefabs In Hierarchy?

Hello, I have added several of the same prefab object into the hierarchy. Even if I reorder the hierarchy, when play is pressed, it reorders everything back to the creation order. Is there a way to stop or address this default behavior?

E.g.

Creation order:

Hierarchy

→ Prefab (0)
→ Prefab (1)
→ Prefab (2)

After reorder:

Hierarchy

→ Prefab (2)
→ Prefab (0)
→ Prefab (1)

When play is pressed:

Hierarchy

→ Prefab (0)
→ Prefab (1)
→ Prefab (2)

Thanks for the help!

to get the index in the hierarchy of a gameobject comparing to its parent and

to set it’s place in it.