The easy way

This won’t work if there are merge commits in your selection

The advanced way

Start the rebase dialog: