sort hierarchy under same parent using code

hello,
If i have few UI objects under same parent, the lowest one in the hierarchy of that parent is the highest one to be displayed on top of all others.

is there a way in code to sort a GameObject to be the lowest (top of display) one ?

I already have them all in array and controller that is aware of them.

Thank you.

See here: Unity - Scripting API: Transform

You can use the following methods to set your index among your siblings:

SetSiblingIndex()

SetAsFirstSibling()

SetAsLastSibling()