fix: use numeric sorting for tomselect dropdowns

This commit is contained in:
2026-05-01 13:56:00 -04:00
parent e74295fee4
commit af49c71d72
@@ -18,10 +18,13 @@
copyClassesToDropdown: false,
dropdownParent: 'body',
controlInput: '<input>',
sortField: {
sortField: [{
field: 'text',
direction: 'asc'
}
direction: 'asc',
func: function(a, b) {
return a.text.localeCompare(b.text, undefined, {numeric: true, sensitivity: 'base'});
}
}]
});
});
});