Here is the ranking of G20 countries in order of income inequality, from highest to lowest:

1. South Africa 
2. United States 
3. Brazil 
4. Mexico 
5. India 
6. Argentina 
7. Indonesia 
8. Russia 
9. Turkey 
10. China 
11. Italy 
12. France 
13. Canada 
14. Germany 
15. Australia 
16. United Kingdom 
17. Japan 
18. South Korea 
19. Saudi Arabia 
20. European Union 

Some specific effects of income inequality in each country are:

- South Africa:
  - High levels of crime and violence, as the poor resort to crime to survive.
  - Limited access to quality education and healthcare for the poor, perpetuating the cycle of poverty.
- United States:
  - Lack of affordable healthcare for many low-income Americans, leading to poorer health outcomes.
  - Limited access to quality education, perpetuating the cycle of poverty.
- Brazil:
  - High levels of crime and violence, as the poor resort to crime to survive.
  - Limited access to quality education and healthcare for the poor, perpetuating the cycle of poverty.
- Mexico:
  - Limited access to quality education and healthcare for the poor, perpetuating the cycle of poverty.
  - High levels of corruption and political instability, exacerbating income inequality.
- India:
  - Limited access to quality education and healthcare for the poor, perpetuating the cycle of poverty.
  - High levels of malnutrition and hunger among the poor.
- Argentina:
  - High levels of inflation, making it difficult for low-income families to make ends meet.
  - Limited access to quality education and healthcare for the poor, perpetuating the cycle of poverty.
- Indonesia:
  - Limited access to quality education and healthcare for the poor, perpetuating the cycle of poverty.
  - High levels of corruption and political instability, exacerbating income inequality.
- Russia:
  - High levels of corruption and political instability, exacerbating income inequality.
  - Limited access to quality education and healthcare for the poor, perpetuating the cycle of poverty.
- Turkey:
  - High levels of inflation, making it difficult for low-income families to make ends meet.
  - Limited access to quality education and healthcare for the poor, perpetuating the cycle of poverty.
- China:
  - Limited access to quality education and healthcare for the poor, perpetuating the cycle of poverty.
  - Limited political freedom for citizens, exacerbating income inequality.
- Italy:
  - High levels of youth unemployment, making it difficult for young people to climb the economic ladder.
  - Limited access to quality education and healthcare for the poor, perpetuating the cycle of poverty.
- France:
  - Limited access to quality education and healthcare for the poor, perpetuating the cycle of poverty.
  - High levels of youth unemployment, making it difficult for young people to climb the economic ladder.
- Canada:
  - Limited access to affordable housing for many low-income Canadians.
  - Limited access to quality education and healthcare for the poor, perpetuating the cycle of poverty.
- Germany:
  - Limited access to affordable housing for many low-income Germans.
  - Limited access to quality education and healthcare for the poor, perpetuating the cycle of poverty.
- Australia:
  - Limited access to affordable housing for many low-income Australians.
  - Limited access to quality education and healthcare for the poor, perpetuating the cycle of poverty.
- United Kingdom:
  - High levels of child poverty, with over 4 million children living in poverty.
  - Limited access to affordable housing for many low-income Britons.
- Japan:
  - Limited access to affordable housing for many low-income Japanese.
  - Limited access to quality education and healthcare for the poor, perpetuating
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence