I am developing a program, which splits data into small messages. I send these messages one by one to another program in a random order. The other program can restore the original order of the messages.
Can I use reinstate the order
or only restore
is an appropriate word in this context?