var sortSelectOptions = function(select, order){
	if(order === 'asc'){
		var elements = $(select).children('option').not(':first').get();

		elements.sort(function(elm1, elm2){
			return $(elm1).text().trim().localeCompare($(elm2).text().trim());
		});	
		
		$(select).append(elements);
	}else if(order === 'desc'){
		var elements = $(select).children('option').not(':first').get();

		elements.sort(function(elm1, elm2){
			return $(elm2).text().trim().localeCompare($(elm1).text().trim());
		});
		
		$(select).append(elements);
	}	
};