mledoze / countries

World countries in JSON, CSV, XML and Yaml. Any help is welcome!

Home Page:https://mledoze.github.io/countries/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default order of countries

ebenh opened this issue · comments

commented

Is there a reason why the default order of countries isn't alphabetical?

For instance, the list starts with "Aruba" instead of "Afghanistan".

IMHO, the list should be sorted by ISO 3166-1 alpha-2 code by default.

The reason is that the countries are sorted by ISO 3166-1 alpha-3 code. The sort by ISO 3166-1 alpha-2 code puts Andorra first but not Afghanistan.