We would need to be able to reproduce the problem in order to fix it.
I have tried to find the steps that would reproduce having the code placed in the wrong order, but have not been able to. If we could identify the circumstances that the problem occurs in, we could find and fix the problem, but without being able to reproduce, it is very difficult to fix. I'll keep my eye out and if I can identify the steps to reproduce, i will log a bug.