Cleanup mis-ordered lines.