Which of the following events related to the history of Australia and New Zealand occurred first

The arrival of the first European settlers in Australia (1788) occurred before the signing of the Treaty of Waitangi in New Zealand (1840).