I need seriouse help

I was knitting a shirt…and I like to use flexible straight needles that way I can add an extra cable if my work gets crowded. Well I was working on this project when the ws became rs… I don’t know what happend but it;s like my work turned it self inside out… can someone tell me what I did wrong please.

Are you knitting flat pieces or working in the round somehow on straight needles?:??

When knitting in the round on circular needles it usually means you’ve accidentally started working on the inside of the circle of knitting instead of the outside.

When you’re knitting flat it could be that you knit one more row than you thought at one point so when you did the next row you were on the wrong side of the work.