$sorttok seems to be working ok here with negative numbers...

Code:
//echo -a $sorttok(4 5 1 10 15 2 -4 -1, 32, n)


result...

-4 -1 1 2 4 5 10 15