Which of the following battles came first in case of time from earliest to latest?

In order of earliest to latest, the following battles took place:

1. Battle of Marathon - fought between the Greeks and the Persians in 490 BC
2. Battle of Thermopylae - fought between the Greeks and the Persians in 480 BC
3. Battle of Hastings - fought between the Normans and Anglo-Saxons in 1066 AD
4. Battle of Waterloo - fought between the British and Allied forces against the French in 1815 AD