It's funny how easy this actually is... I must be spending too much time with this code :)
function doctype()
{
qa_html_theme_base::doctype();
if(isset($this->content['a_form'])) {
$a_form = $this->content['a_form'];
unset($this->content['a_form']);
$this->content['a_form'] = $a_form;
}
}
All this does is send a_form to the end of the array, which causes it to show last. There may be something it has to come before, but you can just unset and readd that as well, in the same way.