Order of items in a list picker

I have a messaging app that I am creating but when I use list picker the new message appears on top of the last message. Is there a way to make it so that the new message appears underneath the old message not on top of it?

Thanks

You could "reverse" the list (sounds like you already have ?) or "insert" new items to the end/beginning of the list instead of adding them

Do you have an example of code for that? Sorry, I'm pretty new to coding.

I think inserting is better. It seems that the messages update constantly. You will have to reverse -> add item -> and reverse again.