Hi Bob, Thanks, yes thats what I ended up doing as part of the solution .... it also helped to read this massive but genius thread :)
http://forums.livecode.com/viewtopic.php?f=8&t=24945 On Fri, Dec 14, 2018 at 9:31 PM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > 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@lists.runrev.com> 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. > > > _______________________________________________ > 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 > _______________________________________________ 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