It was only when he told me his surname that I realized that we had been to the same school. Only when he told me his surname did I realize that we had been to the same school. Inversion is needed when 'Only' starts the sentence,
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.