I'm trying to make an order by a foreach in the order of categories but it will not!
<ul class="categories-legend">
<?php
$args = array(
'order' => 'DESC' //this is the default as well
);
$category = get_terms($args);
foreach($dashboard_categories as $category):
$color = carbon_get_term_meta($category->term_id, 'gp_category_color');
?>
<li class="categories-legend-item" style="color:<?php echo $color;?>"><span><?php echo $category->name; ?></span></li>
<?php endforeach; ?>
</ul>