Select menu dynamic and static

Could you add the option to your data and then use a sort to put it at the bottom? Something like what I did here - Tagify Group By

I tried writing some code to achieve what you want, but it persists in putting it at the top, even though normally this code would add it to the end so it seems an anomaly of Wappler.

$(document).ready(function(){

            var val = dmx.parse('var_date.datetime.formatDate(`yyyy-MM-dd`)');

            var txt = "SPEDIRE ALLA DATA";

            var sel = document.getElementById("tipofrm");

            var opt = document.createElement('option');

            opt.text = txt;

            opt.value = val;

    sel.add(opt)

})