Despite trying to make it work at all posible ways, i'm not able to order the select/options form from A to Z. it displays me by option "id" and what i want is to show my drupalgap form using hook_form_alter and display the order correctly. This is the last thing i tried until now. Thanks!!!
$(document).on("pageload", "#informes", function() {
console.log("hola");
$("#edit-views-exposed-form-field-organismo-auditado-mobile-value").append($("#edit-views-exposed-form-field-organismo-auditado-mobile-value option").remove().sort(function(a, b) {
var at = $(a).text(), bt = $(b).text();
return (at > bt)?1:((at < bt)?-1:0);
}));
});
console.log(form.elements['field_organismo_auditado_mobile_value']);
, what does that report? Please use pastebin (or something).