hmmmmm I tried to do that before you replied, linking the name to his respective score, but it didn't work, I always get an error, like if I'm using wrong values, mixing numbers with strings, and I wasn't doing that.....I'm using this function:
function QuickSort(Lower, Upper)
pivot=0
Left = Lower
Right = Upper
pivot = GeneralArray(Left)
while Left < Right
while (GeneralArray(Right) >= pivot) and (Left < Right)
dec Right
endwhile
if Right <> Left
GeneralArray(Left) = GeneralArray(Right)
inc Left
endif
while (GeneralArray(Left) <= pivot) and (Left < Right)
inc Left
endwhile
if Right <> Left
GeneralArray(Right) = GeneralArray(Left)
dec Right
endif
endwhile
GeneralArray(Left) = pivot
pivot = Left
if Lower < pivot then QuickSort(Lower, pivot - 1)
if Upper > pivot then QuickSort(pivot + 1, Upper)
endfunction
the GeneralArray is for the numbers, and I'm using a new array (Name$) to put the names and just doing with it what GeneralArray does, but when it comes to
GeneralArray(Left) = pivot I can't do that with the Name$ array, so how can I do it then?
Thanks for your reply
:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::