@files = map { $_->[0].'_'.$_->[1] } sort { $a->[1] cmp $b->[1] } map { [/^(.*)_(.*)$/] } @files;