Unity add child to children, but at top
There is a dedicated method:
transform.SetAsFirstSibling();
You can change the order in the hierarchy using Transform.SetSiblingIndex.
So basically you'd want to set the first index to your desired element:
messageObj.transform.SetSiblingIndex(0);