Get one’s act together

Meaning: To become organised and start behaving or working more effectively.

Example: I need to get my act together before the examination.