The origins of political order