I am loading terms programmatically but I am hoping to load them in the same order as they show in the CMS (weight). If not that, I just want them to load in alphabetical order.
This is what I am doing:
$vocabulary = taxonomy_vocabulary_machine_name_load($name); $terms = entity_load('taxonomy_term', FALSE, array('vid' => $vocabulary->vid));
Any idea how to achieve that?