When everything seems important, how do you determine what to do first?

It is really important to figure out the most important thing but for that it depends what are short term goals? Some things need timely attention or person need them right away for example one is hungry and have to finish home work in an hour. So it is better to eat first and then complete homework. In hunger it will be difficult to concentrate so it is better to fulfill elementary and timely things first.