The Advocate weighed a city's number of LGBT elected officials, transgender protections and other factors in compiling this year's rankings.