text sortType

stephen barncard stephenREVOLUTION2 at barncard.com
Tue May 28 14:16:42 EDT 2013


be sure to set the itemdelimiter to the desired delimiter just before the
sort.

Just like the state of the result, it's good to be explicit. You might have
set the delimiter to something else in the handler.


On Tue, May 28, 2013 at 10:33 AM, Tiemo Hollmann TB <toolbook at kestner.de>wrote:

> How about sorting twice
> sort lines of sReportText numeric by item 2 of each
> sort lines of sReportText by item 1 of each
> didn't tested
> Tiemo
>
>
> > -----Ursprüngliche Nachricht-----
> > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im
> Auftrag
> > von Andrew Kluthe
> > Gesendet: Dienstag, 28. Mai 2013 19:06
> > An: How to use LiveCode
> > Betreff: text sortType
> >
> > 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
>
>
> _______________________________________________
> 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
>



-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  <http://www.google.com/profiles/sbarncar>



More information about the use-livecode mailing list