valueDiff for arrays?

Bob Sneidar bobsneidar at iotecdigital.com
Tue Aug 7 18:12:34 EDT 2018


You can as I understand get the keys of an array, which returns a string, then sort the string. I am unaware of any function that can sort an array natively before it is returned. 

Bob S


> On Aug 7, 2018, at 15:02 , Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Bob Sneidar wrote:
> 
> > Someone said, probably Mark, that numbered key arrays beginning with 1
> > will always return their keys sorted numerically. I always wondered
> > why almost every other array seemed to scramble to order of it's keys,
> > but datagrid arrays never did.
> 
> Associative arrays are a collection of hashes, and as such have no internal sense of order.
> 
> The DataGrid script runs output through the sort command before returning it.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web





More information about the use-livecode mailing list