organize numbers from bigger to smaller – list

Sep 25, 2012 at 5:08pm

organize numbers from bigger to smaller – list

Hi All,
I have a very simple question, but I didn’t find in the forum the answer.
I have a list in a “coll” object with many numbers, the info is related with a record, “how much time people stay in a place”
I have names and times but now I need to show in the screen in order the best 10 times. How can I organize these numbers from big to small?
There is a simple way? or i have to start to check the bigger of the list, take it appart and start again with the next looping until the end?
Thanks for the help

Sep 25, 2012 at 5:32pm

if your coll looks something like this:
0, 555 Harry;
1, 1000 Sally;
2, 222 Marry;

you can use the “sort 1″ message to sort the first numbers; then send “renumber” to get the indices correct and you should be good to go…

if it is the other way around (0, Marry 222; etc) use “sort 2″…


You must be logged in to reply to this topic.