printout doesn`t use sort of foundset

Hello Servoyans,

I`m using this code to set data from a custom query on a Find form to a printout form.

forms.Printout_Hardware_Printers.controller.loadRecords(foundset)

forms.Printout_Hardware_Printers.controller.print()

The foundset has been copied correctly in the same sort order that the original form has.
However when I use the print preview command the sort order dissapears (or is set to PK).

When I manually enter a query and manually sort the records on the printform the sort order of the print preview is correct.

In this case only 38 record are in the database.

Please confirm if this is a bug or if I misunderstood something.

Kind Regards Rene.