You’ll have to specify the order
and the orderby
parameters within get_tags()
. If you want an ascending order by slug you can update youre code snippet this way:
$tags = get_tags( 'order=ASC&orderby=slug' );
There are also a lot of other parameter as you can see in the codex:
http://codex.wordpress.org/Function_Reference/get_tags#Parameters