Fix the order of the loops.
Description
Fix the order of the loops.
News snippet
Fix the order of the loops.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.