user
Task

Sort an array (or list) of integers in ascending numerical order.

Use a sorting facility provided by the language/library if possible.
assistant
(formerly Perl 6)
If `@a` contains only numbers:

```
my @sorted = sort @a;

```

For an in-place sort:

```
@a .= sort;

```