I'm getting the results of term->children() not sorted. I can't seem to get 
my children nicely ordered the same as get_tree($orderby= 'mptt_left ASC') 
Am I missing something obvious?

$html = '';

// don't want entire tree
// $rt = $this->vocabulary->get_tree();
// Instead would like to work on root terms rt

$rt = $this->vocabulary->get_root_terms(); 

foreach ( $rt as $term_ob )
{
    $children = $term_ob->children();
    // $children->tree_sort(); fails here as non-object
    $html .= Format::term_tree($children, 'test_tree_name', array());
}

echo $html;




-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev

Reply via email to