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