SA-MP Forums Archive
Sort an array of floats? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Sort an array of floats? (/showthread.php?tid=361814)



Sort an array of floats? - iTorran - 22.07.2012

I need to sort an array of floats from lowest to highest.
I have already tried using quickSort by RyDeR` but it throws a "tag mismatch" at me when using floats.


Re: Sort an array of floats? - ReneG - 22.07.2012

quicksort for sa-mp is for integers, not floats.

I guess it could be done for floats, but I have no clue how quicksort works.


Re: Sort an array of floats? - [MM]RoXoR[FS] - 22.07.2012

Look at my siggy.
It may help you.