Extract the names of the cities and rank them in alphabetical order?

The United Kingdom is a constitutional monarchy and parliamentary democracy.[m][25] Its capital and largest city is London, the capital of England, a global city and financial centre with a population of over 14 million people. Edinburgh, Cardiff and Belfast are the national capitals of Scotland, Wales and Northern Ireland respectively.

The cities listed in alphabetical order are Belfast, Cardiff, Edinburgh and London.