in reply to Re^4: sort an array with +ve & -ve numbers in it
in thread sort an array with +ve & -ve numbers in it

Typo alert: you have 2 sorts. The result is that you sort alphabetically after having sorted numerically.

Unfortunately, your test dataset doesn't show the problem. Try adding 100 to the data.

  • Comment on Re^5: sort an array with +ve & -ve numbers in it