The order of charity โ ordo caritatis โ emanates outwards.
Your first obligation is to your family, then to your extended family, then to your friends and neighbours, then to your wider community, then to your nation, and then to the world.
To invert this order is disordered.