<p>I think that order is intentionally to give the database the possibility to delete the related rows itself with a contraint that has cascaded delete enabled.<br>
Which RDBMS are yoiu using when you encounter this error? You should provide failing test case too, please.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href='https://github.com/dbsrgits/dbix-class/pull/27#issuecomment-18310424'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/4W3BWTo7EIi_7vx28Xzl_mJnCwjxj52C33_Ervpy2ogo-MvpszQvTwkKiTOIEY0G.gif' height='1' width='1'></p>