The city ranked fifth among cities with the biggest salary gap between the top 5 percent of earners and the bottom 20 percent, according to a report released Thursday.