text sortType

Andrew Kluthe andrew at ctech.me
Tue May 28 13:06:04 EDT 2013


Hello Ya'll,

I am trying to sort some tab delimited data by item 1 of each. Item 1 of
each is a name and a number.

Kansas 1
Kansas 3
MO 3
MO 8


Anyhow, when I run the sort as

sort lines of sReportText by item 1 of each

I get it sorted pretty close, but entries with the same name and a
different number are not sorted numerically after being sorted
alphabetically.

Are there any built in options or tricks I could use to get the desired
result without having to write a custom sort function for this seemingly
simple task?



-- 
Regards,

Andrew Kluthe
andrew at ctech.me



More information about the use-livecode mailing list