valueDiff for arrays?

Richard Gaskin ambassador at fourthworld.com
Tue Aug 7 18:02:58 EDT 2018


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
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list