Hello everyone,
I have an array which contains the following numbers:
10000
900
670
600
500
I want to sort the array in that format above. Largest to smallest, thus using rsort(). However the outcome turns out to be:
900
670
600
500
10000
Looks like rsort() just looks at the first digit of the whole number to sort the array. Is there any fix to this?
Thanks,
Kevin