organize numbers from bigger to smaller - list


    Sep 25 2012 | 5:08 pm
    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
    David

    • Sep 25 2012 | 5:32 pm
      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"...