[eluser]prestondocks[/eluser]
I just worked it out myself. I had to first use the include_related command
$t->include_related('task_group/user',array('id','username'));
Then I could just use a simple order_by command.
$t->order_by('username','asc');
What great library DataMapper is. I can not do with out it any more.
Hope this helps someone.
Simon