As the nation prepares to honor those who served our country, an online financial publication has ranked the best and worst cities for veterans.

According to a report from WalletHub, El Paso is the 31st best place current and former service members should call home -- a drop of 25 spots from 2016 when the site ranked the Sun City #6.

To arrive at its rankings, the personal finance website compared 100 of the biggest cities in America using various factors relevant to veterans, such as military skill-related job opportunities, number of homeless veterans, the availability of VA hospitals, and education opportunities for veterans.

El Paso scored well in the Economy (20), Quality of Life (27), and Health (38) categories, but its low score of 82 in the Jobs category was a major factor in its slide out of the Top 10.

Austin was named The best city for veterans to put down roots. Detroit, Mich., came in dead last for the third year in a row.