looking for a smart approach to "sort" an array
    hh 
    hh at hyperhh.de
       
    Fri May  5 14:36:56 EDT 2017
    
    
  
> Mike B. wrote:
> repeat for each line tKey in myArrayA["sortedWords"]
>   -- do whatever with each one myArrayA[tKey].....
> end repeat
Why administrate another object while you have already one?
One could rebuild to string from array and sort in one step:
put fld "myListField" into mySortList
repeat for each line L in mySortList
    -- do whatever with each one myArrayA[L] ...
end repeat
    
    
More information about the use-livecode
mailing list