Get one’s priorities straight

Meaning: To decide what is most important and organise your time or efforts accordingly.

Example: You need to get your priorities straight and focus on the most urgent work.