When the panel is registered and has a parent, it's not ordered in the parent's "children"-list using the bl_order property of the class.
Behavior before the patch:
This is the result of running the script in the attached test file after the patch:
Test file:

