There are very clear rules in hilchos tzedaka who to give to first. Maaser has its own rules. There are even some english books on the topic.
Most knowledgeable LOR's would be glad to offer direction.
Basically, family comes first, who dosent have a relative that is struggling...