Hi everyone,
I am trying to sort an array.
I am using usort, and it seems to work most of the time whether I am sorting by an alpha numeric string, or just a number.
For some reason though once in a while it will sort a number like you would a word...
So now instead of it being sorted:
114
90
10
6
It will just sort by the first number, so it will look like this:
90
6
114
10
Why is this happening? and how can I get it to distinguish between a letter and a number?
Thanks for your time. Any help is greatly appreciated.