What is the meaning of Sort_oneself_out?

To organize or solve one's personal problems.

To calm down emotionally.

Source: wiktionary.org