Re #9468. Connected sort dialog to main menu.