text sortType

Thierry Douez th.douez at gmail.com
Tue May 28 13:31:28 EDT 2013


Hi Andrew,

AFAIR, you can pile the sort command one after the other, as:


   sort lines of sReportText numeric by item 2 of each
   sort lines of sReportText by item 1 of each

HTH.

Thierry


------------------------------------------------
Thierry Douez - http://sunny-tdz.com
Maker of sunnYperl - sunnYmidi - sunnYmage


2013/5/28 Andrew Kluthe <andrew at ctech.me>

> 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
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list