wordpress order by taxonomy term code example
Example: wp_query order by taxonomy
$timeline_taxonomies = get_terms(array(
'fields' => 'ids', //get the IDs
'taxonomy' => 'taxonomy_name',
'orderby' => 'term_order',
'hide_empty' => true,
));