title: WordPress get terms and orderby
body: <p>I am querying the terms in a custom taxonomy i have with the following code:</p>
  <pre><code>&lt;?php
    $term_slug    = get_query_var('term');
    $taxonomyName = get_query_var('taxonomy');
    $current_term = get_term_by('slug', $term_slug, $taxonomyName);
    $termchildren = get_term_children($current_term-&gt;term_id, $taxonomyName);
    foreach ($termchildren as $child) {
      $term = get_term_by('id', $child, $taxonomyName);
      
      echo '&lt;li id=&quot;mid&quot;&gt;&lt;a href=&quot;#tab-' . $slug = $term-&gt;slug . '&quot;&gt;' . $term-&gt;name . '&lt;/a&gt;&lt;/li&gt;';
      
    }
  ?&gt;
  </code></pre>
  <p>This is all working great! The problem I have is that I would like to order it by menu-order or something similar. At the moment they are in random order!</p>
  <p>Can anyone suggest what I need to do?</p>