Subject-auxiliary inversion
In this type of inversion, the subject and the auxiliary switch positions. In the present and past simple, the auxiliaries do/does and did come before the subject, which is followed by the bare infinitive. The word order is the same as in questions.
Subject-auxiliary inversion after negative adverbials
Subject-auxiliary inversion after SO + adverb / adjective and SUCH
Subject-auxiliary inversion in questions
Subject-auxiliary inversion in question tags
Subject-auxiliary inversion in echo tags
Subject-auxiliary inversion with SO and NEITHER / NOR to express agreement