There are many criteria you could use for making such ranking of problems (a popular one is minimizing dollars per lives saved, or dollars per QALY added). Living in a free society means people are free to decide how much (if anything all) they want to spend on charitable causes, and on which ones. But in one's individual spending, it's worth to think about how to get maximum "bang for your buck", in terms of alleviating suffering.
---
[0] - By coincidence, this is on the front page right now: https://news.ycombinator.com/item?id=22993486.
And the people running this shelter, knowing that donor funds are limited, are asking for it to be spent on keeping unwanted dogs alive when there are people starving. It's more humane to put the dogs to sleep. They will feel no pain.
But nobody is going to even begin to consider putting the children to sleep are they? Those kids are going to suffer badly, and you're here arguing that the dogs are more important?
These are unprecedented times, and you can't just waste money.