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