The personal finance site compiled data for every city with more than 300,000 residents (64 cities in all) and then ranked them according to seven metrics: number of mortgage lenders, value per square foot, loan-funding rate, affordability ratio, market volatility, number of negative quarters since 2011 and homeowner stability index.