State the order in which the following possible stages of a star occur: main-sequence star, planetary nebula, white dwarf, protostar, red giant.

1. Protostar

2. Main-sequence star
3. Red giant
4. Planetary nebula
5. White dwarf