* To get your act together.
* To get your thoughts and priorities in order.
* To start acting responsibly and behaving appropriately.
It implies that someone is currently behaving in a chaotic, disorganized, or foolish way, and needs to straighten up their act.
Example:
"You need to get your pants on straight and start focusing on your studies instead of playing video games all day."