Which shows the correct order of steps during the formation of an ionic bond?

Ions are attracted to each other → Electrons are transferred → An ionic compound forms
An ionic compound forms → Ions are attracted to each other → Electrons are transferred
Electrons are transferred → Ions form → Ions are attracted to each other
Ions form → Electrons are transferred → Ions are attracted to each other

Electrons are transferred → Ions form → Ions are attracted to each other