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@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


_______________________________________________
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