get_posts ordder by taxonomy 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,
));