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" <paulhibb...@mac.com>
To: "How to use LiveCode" <use-livecode@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, la...@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to