Add a confirmation dialog to rhe sort action

From time to time, I hit the sort button accidentaly. It would be great if the sort action ask me for a confirmation, or better, ask me if I want to sort a single page or all fouwr pages.
Thanks in advance.