sort question for today
larry at significantplanet.org
larry at significantplanet.org
Mon Sep 29 05:21:19 EDT 2014
Hi Paul,
That is essentially what I did, but not as elegantly as your solution.
But it works and it is very quick, so I'm happy.
Thanks very much for helping me see an even better way.
Larry
----- Original Message -----
From: "Paul Hibbert" <paulhibbert at mac.com>
To: "How to use LiveCode" <use-livecode at lists.runrev.com>
Sent: Monday, September 29, 2014 1:28 AM
Subject: Re: sort question for today
Larry,
This should work…
put line 7 to -1 of fld myStats into tLinesToSort
sort lines of tLinesToSort by word 2 of each
put tLinesToSort into line 7 to -1 of fld myStats
You can only sort all Lines or Items of a container, so if you need to sort
specific lines or items, you must put them into a separate container to do
the sort, then replace them.
Paul
On Sep 28, 2014, at 8:35 PM, larry at significantplanet.org wrote:
> Hello,
>
> I am trying to sort lines 7 through the last line of a field.
>
> This doesn't work:
> sort lines (7 to last) of field myStats by word 2 of each
>
> Does anyone know the code that will work?
>
> Thanks, Larry
> _______________________________________________
> 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
More information about the use-livecode
mailing list