Arrange the following events in a chronological order:
(A) Babur defeats Ibrahim Lodi, the Delhi Sultan, at Panipat, and becomes the first Mughal emperor
(B) Humayun is defeated by Sher Shah, in exile at the Safavid court
(C) Nadir Shah invades India and sacks Delhi
(D) The 'diwani' of Bengal was transferred to the English East India Company
Choose the correct answer from the options given below: