This probably is a very simple sort question. I want to sort data like
d3 d1 d10 d2 d20 d21 d100 d201
so that I get
d1
d2
d3
d10
d20
d21
d100
d201
If the data is in an array then
foreach $t_item (sort {$a cmp $b} @t1) {
does not give what I want.
What is the simplest way of doing this?