in reply to Re^2: sorting an array with decimal points
in thread sorting an array with decimal points
was that it failed to sort in the correct order, thensort { substr($a, 6,2) <=> substr($b, 6,2)} @array
would fix that.sort { substr($a, 6) <=> substr($b, 6)} @array
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: sorting an array with decimal points
by Laurent_R (Canon) on Jan 15, 2018 at 23:16 UTC |