$(function() {
  var select = $('.selectedcity2');
  select.html(select.find('option').sort(function(x, y) {
    return $(x).text() > $(y).text() ? 1 : -1;
  }));
$('.selectedcity2').prepend('<option disabled selected>Select city</option>');
});