The Economist sorted African countries according to the “democracy index”