my @new_array_sorted = sort @new_array; print Dumper \@new_array_sorted; __END__ $VAR1 = [ '1', '2' ];