I am working on a custom taxonomy sorting to make popular terms. The requirement is to sort by popular posts by post count and also I need to sort terms by name to get it alphabetical order.
Here is my code
$args = array( 'hide_empty' => 0 , 'orderby' => 'count', 'orderby' => 'name', 'parent'=> $cat_main->term_id ); $terms = get_terms('question_type',$args);
Another condition is that
count has to be
orderby name has to be 'ASC'