Selfless charity to poor and needy
Charity is recommended as a practice as it cultivates Metta(kindness), Karuna(compassion) in the mind. Buddhism does not say to be selective when you are giving for charity. It just mentions that giving to virtuous beings is more meritorious and the way one should give gifts.


  "Selfless" here means "concerned more with the needs of others than
  with one's own".


In an ultimate sense the goal of charity in Buddhism is to cultivate a wholesome mental quality that helps to attain enlightenment. It's not about fixing what's wrong with  the world. There are no others or 'oneself' involved in that sense.