jQuery(document).ready(function() {
// get the select options by text 
function optionSort($id){
var $dd = $($id);
if ($dd.length > 0) { // make sure we found the select we were looking for

    // save the selected value
    var selectedVal = $dd.val();

    // get the options and loop through them
    var $options = $('option', $dd);
    var arrVals = [];
    $options.each(function(){
        // push each option value and text into an array
        arrVals.push({
            val: $(this).val(),
            text: $(this).text()
        });
    });
selectText = arrVals[0];
arrVals.splice(0,1);
arrVals.sort(function(a, b){
if(a.text.toLowerCase()>b.text.toLowerCase()){
        return 1;
    }
    else if (a.text.toLowerCase()==b.text.toLowerCase()){
        return 0;
    }
    else {
        return -1;
    }
});

    // loop through the sorted array and set the text/values to the options
for (var i = 0, l = arrVals.length; i < l; i++) {
        $($options[i+1]).val(arrVals[i].val).text(arrVals[i].text);
    }

    // set the selected value back
    $dd.val(selectedVal);
}
}
var mySelectIds = new Array("#lcol_top","#ailmentmenu","#tissuesaltsmenu")
 
for(i=0; i<mySelectIds.length; i++){
optionSort(mySelectIds[i]);
}
}); 