Arrange the following historical events in chronological order:
A. Nadir Shah invades India and sacks Delhi.
B. The “diwani” of Bengal transferred to the East India Company.
C. Ahmad Shah Abdali defeats the Marathas in the Third Battle of Panipat.
D. Babur defeats Ibrahim Lodi, the Delhi Sultan, at Panipat.
Choose the correct answer from the options given below: