Christian, I *think* that the intent was to pass an ordered collection from process to process. i.e. - process 1 order the data in whatever manner is desired. - pass the collection from process 1 to process 2 - process 2 receive the ordered collection and do stuff with it, in the order in which it was passed -- without -- having to know the specifics of the ordering.
All of that said... and me with NO use of collections or objects (I'm still in v13) could you: - create your collection - add a property to the collection which defines the desired ordering - pass collection to secondary process - use the collection's 'order' property to order the collection as desired. it does not 'pass an ordered collection', but it comes close; and would allow a generic routine on the receiving end to execute the ordering. Chip On Thu, 18 Oct 2018 14:30:43 +0200, Christian Sakowski via 4D_Tech wrote: > > I create an ordered selection from a collection by doing this: > > ARRAY LONGINT($ids;0) > COLLECTION TO ARRAY($collection;$ids) > > QUERY WITH ARRAY([table]ID;$ids) > ORDER BY FORMULA([table];Find in array($ids;[table]ID)) > --------------- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

