The police arrive and Sherlock starts deducing the shooter's identity, before realising it's John, telling Lestrade to ignore everything he said.
The police arrive. Sherlock starts deducing the shooter's identity. This is before realising it's John, telling Lestrade to ignore everything. He said everything.