If @a contains only numbers:
@a
my @sorted = sort @a;
For an in-place sort:
@a .= sort;
Last updated 1 year ago