Which of the following is the correct way of sorting an array of integers in ascending order?
sort @a
sort {$1 <=> $2} @a
sort {$a <=> $b} @a
sort {$[0] <=> $[1]} @a