in reply to Re: Fastest way to sort a list of integers into 0,1,2,3,-3,-2,-1
in thread Fastest way to sort a list of integers into 0,1,2,3,-3,-2,-1
just a complicated/expensive way of doing@list = unpack 'j*', pack 'J*', sort { $a <=> $b } unpack 'J*', pack 'j*', @list;
@list = unpack 'j>*', sort pack 'j>*', @list;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Fastest way to sort a list of integers into 0,1,2,3,-3,-2,-1
by vr (Curate) on Feb 06, 2019 at 09:33 UTC | |
by ikegami (Patriarch) on Feb 06, 2019 at 20:10 UTC |