Script run from a button on Layout1:
Go to Layout [Layout2]
Enter Find Mode 
Perform Find [Restore]
Sort Records by Field [LastName]
Go to Layout [Layout3]
When this script is run the Print dialog appears while Layout1 is displayed on screen, if I print or cancel then Layout3 appears on screen. I would expect that Layout3 would be the screen layout when the Print dialog appears. Am I missing a step?