Sort custom post type by custom taxonomy

Im using this code to sort my custom post type by one of its custom taxonomies:

   <?php         $  valores = get_terms('valor', array('order' => 'DESC',));         foreach($  valores as $  valor) {             $  posts = get_posts(array(                     'post_type' => 'propriedade',                     'tax_query' => array(                         array(                             'taxonomy' => 'valor',                             'field' => 'slug',                             'terms' => $  valor->slug                             )                         ),                     'numberposts' => -1                 ));             foreach($  valores as $  valor) {                 print_r($  valor);             }         }     ?> 

but the list seems not to be ordered as DESC:

WP_Term Object (     [term_id] => 28     [name] => 40000     [slug] => 40000     [term_group] => 0     [term_taxonomy_id] => 28     [taxonomy] => valor     [description] =>      [parent] => 0     [count] => 1     [filter] => raw ) WP_Term Object (     [term_id] => 32     [name] => 2000000     [slug] => 2000000     [term_group] => 0     [term_taxonomy_id] => 32     [taxonomy] => valor     [description] =>      [parent] => 0     [count] => 1     [filter] => raw ) WP_Term Object (     [term_id] => 27     [name] => 2000     [slug] => 2000     [term_group] => 0     [term_taxonomy_id] => 27     [taxonomy] => valor     [description] =>      [parent] => 0     [count] => 1     [filter] => raw ) 

What I need is to make name or slug start from the lowest value to the higher value.