sort numeric by items?

Randy Hengst iowahengst at mac.com
Sat Jan 16 17:39:34 EST 2016


I’m using LC 7.1.1 on Mac 10.10.5

Just for fun I put your lines in a text field… then this code

  set the itemDel to "_"
   sort lines of field "grNms" ascending numeric by item -1 of each

And the lines were sorted as expected of numeric.

be well,
randy

Randy Hengst
www.classroomFocusedSoftware.com


> On Jan 16, 2016, at 4:36 PM, Dr. Hawkins <dochawk at gmail.com> wrote:
> 
> On Sat, Jan 16, 2016 at 2:22 PM, stephen barncard <
> stephenREVOLUTION2 at barncard.com> wrote:
> 
>> the interpreter is treating the chunk items as text. Is there some way you
>> can force a math operation on each iteration such as +0 ?
>> 
> 
> 0+item -1 of each
> 
> Value(item -1 of each)
> 
> both give me the same result
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> _______________________________________________
> 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