The Hungarian capital was ranked before cities like Prague and Moscow on a list published by The Economist.