I have a reference to an array (called $intervals) and I would like to sort the values in this array. It\'s possible that there could be a huge number of values
$intervals
The second example will create a new reference:
$x = [ qw( a c b ) ]; say $x; @$x = sort @$x; say $x; $x = [sort @$x]; say $x
Reference.