1. When the dog saw me, he wagged his tail.

2. When he saw me, the dog wagged his tail.
--------------------------
Which one is grammatical? Are both ok?

1 answer

Both are fine.