I misread, the photo will always go first, because anything in the message box is text only. If you want to send the photos after the text you need to use separate actions.

https://www.icloud.com/shortcuts/0c0a47ca6214443ea8436d430f12456f