Sorting Lists - 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: Sorting Lists (
/showthread.php?tid=417089)
Sorting Lists -
lavamike - 19.02.2013
I've been looking at the wiki (
https://sampwiki.blast.hk/wiki/Advanced_Structures#Lists) to figure how to sort a numbered list but I still don't quite understand how to do it and the best way to do it.
I'm trying to say, sort a list of 5 numbers from least to greatest, these numbers are stored in an array.
If someone could help explain more or show an example of how I can sort an array into another from least to greatest it would be greatly appreciated.
EDIT: I did manage to come up with this (
http://forum.sa-mp.com/showthread.ph...rt#post1085586) so i'll be looking at that. Hopefully I can figure it out.
Re: Sorting Lists -
Rock - 19.02.2013
See this.
Re: Sorting Lists -
lavamike - 19.02.2013
Thanks man, that helps even more.