Sort question

DunbarX at aol.com DunbarX at aol.com
Mon Oct 4 12:19:12 EDT 2010


This does a stable sort as required. One sort line.


on mouseUp
    put yourData into temp
    set the itemdel to "/"
    sort lines of temp numeric by item 2 of each & char -2 to -1 of item 1 
of each
    answer temp
end mouseUp

It cheats a bit in that it expects the data to be in a format it likes. But 
the multiple stable sort is a great tool.

Craig Newman



More information about the use-livecode mailing list