Please remove the semicolon at the end of the if statement which is causing the issue.
wrong code : if (städer[j].Temp > städer[j + 1].Temp);
Correct code : if (städer[j].Temp > städer[j + 1].Temp)
It would work as you expected.