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, copyClassesToDropdown: false,
dropdownParent: 'body', dropdownParent: 'body',
controlInput: '<input>', controlInput: '<input>',
sortField: { sortField: [{
field: 'text', field: 'text',
direction: 'asc' direction: 'asc',
func: function(a, b) {
return a.text.localeCompare(b.text, undefined, {numeric: true, sensitivity: 'base'});
} }
}]
}); });
}); });
}); });