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