JSFiddle - React, Tailwind, and code Playground

HTML

<select id="trollSelect">
    <option >A</option>
    <option >C</option>
    <option >B</option>
</select>

JavaScript

$(document).ready(function() {
    var opt = $("#trollSelect option").sort(function (a,b) { return a.text.toUpperCase().localeCompare(b.text.toUpperCase()) });
    $("#trollSelect").append(opt);
    $("#trollSelect").find('option:first').attr('selected','selected');
});