7.22 inversion of subject and reporting verb
When a reporting verb comes after a quote, the subject is often put after the verb.
Note that this is not done when the subject is a pronoun.