report subsummary sort problems

I have a report with a leading subsummary on a foreign key, namely:

orderline_to_order.order_id

if I sort the form manually in developer I have the report as expected. But, how do I do this sorting programmatically?

Also if I set the forms initialSort property. The form forgets the property (I’ve filled a bug) so I really must sort it programmatically.

thanks for all the help,
Miguel

controller.sort(‘orderline_to_order.order_id’)

controller.sort(‘orderline_to_order.order_id’)

Thanks for the tip David.
You just saved my day!

I had no idea one could use relations on the sort method :oops:

regards,
Miguel