Oh right. It would be
@list = map { unpack 'j>', $_ } sort map { pack 'j>', $_ } @list;
I knew I was tired and missing something.
In reply to Re^4: Fastest way to sort a list of integers into 0,1,2,3,-3,-2,-1
by ikegami
in thread Fastest way to sort a list of integers into 0,1,2,3,-3,-2,-1
by haukex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |