From what I have found that any changes of speed will not take effect until the next turn. So this means Thunder Wave would not change the order of moves, it will retain the original order of moves.
EDIT:
>On the turn a Pokemon Mega Evolves, it retains its original form's Speed stat.
-ƒιzz
I also found that from a recent question.
Hope this helps!
Source