in reply to sorting by numbers then alphabetically
$ref = [map {$$_[0]} sort {$$a[1] cmp $$b[1]} map {my $srn = $_->seq_region_name; [$_, sprintf "%03d;%s", ($srn =~ /[0-9]/ ? ($srn, "") : ( +0, $srn))]} @$ref];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sorting by numbers then alphabetically
by Tux (Canon) on Dec 23, 2010 at 21:21 UTC |