Im trying to do a top 10, and currently using the sort() command
Lets say the data is :
array[0]=10
array[1]=6
array[2]=3
array[3]=1
array[4]=2
array[5]=5
array[6]=8
array[7]=11
array[8]=14
array[9]=13
array[10]=12
array[11]=2
array[12]=1
So i want to display the results of :
array[8]=14
array[9]=13
array[10]=12
array[7]=11
But the sort() command makes them display
array[6]=8
array[1]=6
array[5]=5
..array[7]=11
So it only sorts by the character, not the number.
And help would be great...