I completely agree that the transmission of messages to remote queues has the potential for the problems you've described, as does multiple instances of a 'put' or 'get' program. However, ...
Within each message on the queue, which is exported to the flat file via JText, there's a sequence number field (which is 'ordered by' when I extract the data from DB2).