Arrange the following events that happen during meiosis in the correct order of occurrence:
1. Formation of a dyad of cells
2. Separation of sister chromatids and migration towards the opposite poles
3. Separation of homologous chromosomes and migration towards the opposite poles
4. Formation of four haploid cells