You are correct for careful writing, but in fact native speakers do with some frequency place the indirect question in direct-question order in casual conversation.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Stenka25I asked her how had she been able to go out dancing.This word order in reported speech (verb–subject) is also quite frequent in spoken BrE, especially where the reported speech includes qualifications of the subject, e.g.
MrPedanticThis word order in reported speech (verb–subject) is also quite frequent in spoken BrE, especially where the reported speech includes qualifications of the subject, e.g.Great obs, MrP
1. I asked her how had she, who had always done X, Y, Z, etc., been able to go out dancing.