Damascus in Syria, recovering from a war, was also rated above Lagos in stability.
The ranking rates cities across five broad categories.