Stumped on Datagrid Problem

Bob Sneidar bobsneidar at
Fri Dec 14 21:31:12 EST 2018

You need to sort the keys of the array and populate accordingly. 

put the keys of aData into tKeyList
sort tKeyList numeric descending

repeat for each line tKey in tKeyList

Bob S

> On Dec 14, 2018, at 14:10 , Tom Glod via use-livecode <use-livecode at> wrote:
> I am using the "dgNumberOfRecords" mechanism to populate a grid.
> Everything works as expected.
> except .....I need the last (new)  element to show up first and the first
> element to show up last.
> this is normally achieved by sorting the column, but I cannot sort using
> the "large dataset method".
> I really don't want to rewrite the array to reverse the sequence every time
> a new record is added..... that will degrade performance as time goes on
> big time......which is the very reason why i used this method for
> populating the grid in the first place..... this grid can have 10,000 items
> in it after a months use.
> the other problem is that elements can also be deleted from the array so
> the array indexes are not always perfectly sequential
> hmmm....
> any ideas are welcome. thank you.

More information about the Use-livecode mailing list