fixed ordine alfabetico capitolato
This commit is contained in:
@@ -81,10 +81,19 @@ $(document).ready(function () {
|
||||
data: { field_ids: fieldId },
|
||||
success: function (res) {
|
||||
const arr = res && res[fieldId] ? res[fieldId] : [];
|
||||
extraFieldOptions = (arr || []).map((x) => ({
|
||||
id: x.IdCustomFieldsValue,
|
||||
label: x.Valore,
|
||||
}));
|
||||
|
||||
extraFieldOptions = (arr || [])
|
||||
.map((x) => ({
|
||||
id: x.IdCustomFieldsValue,
|
||||
label: x.Valore || "",
|
||||
}))
|
||||
.sort((a, b) =>
|
||||
a.label.localeCompare(b.label, "it", {
|
||||
sensitivity: "base",
|
||||
numeric: true,
|
||||
}),
|
||||
);
|
||||
|
||||
done();
|
||||
},
|
||||
error: function () {
|
||||
|
||||
Reference in New Issue
Block a user