fix: disable internal TomSelect sorting to respect server-side order

This commit is contained in:
2026-05-01 14:01:07 -04:00
parent 30dbbd6d58
commit 6cb3e1ac24
@@ -18,13 +18,7 @@
copyClassesToDropdown: false,
dropdownParent: 'body',
controlInput: '<input>',
sortField: {
field: 'text',
direction: 'asc',
func: function(a, b) {
return a.text.localeCompare(b.text, undefined, {numeric: true, sensitivity: 'base'});
}
}
sortField: false // Disable TomSelect's internal sorting
});
});
});