Order internal loop parts so lowest is first

This is a bit more standard ordering for internal loops.
Merge branch 'develop'