Sorting lines

Ken Ray kray at sonsothunder.com
Tue May 29 15:19:12 EDT 2007


On Tue, 29 May 2007 18:39:05 +0100, Martin Baxter wrote:

>>> 2;213;13;Josh;215;666
>>> 3;23;14;Mark;0;0
>>> 1000;999;10101;Mark;211;555
>>> 2;214;25;Peter;212:667
>>> 320;4999;219,Peter;329;366
>>> 
>> set the itemDelimiter to ";"
>> sort lines of tVariable by item 4 of each
> 
> Erm, this doesn't seem to work here in 2.8.1 on win XP. The 
> itemdelimiter appears to be ignored.

Well, I tried it here with the sample above and I got the same result. 
But then I noticd that in the last line, the fourth "item" has a comma 
between "219" and "Peter" instead of a semicolon. When I replaced the 
comma with a semicolon, it sorted properly.


Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/




More information about the use-livecode mailing list