Vienna has been declared the number one city in the annual Global Liveability Index for the second year in a row, narrowly beating Melbourne.