Sort-oneself-out Definition

verb

To organize or solve one's personal problems.

John took a week off work to sort himself out.
Wiktionary

To calm down emotionally.

Give me a few minutes to sort myself out and I'll be with you.
Wiktionary