fix: force bidder number numeric sort in tomselect

This commit is contained in:
2026-05-01 14:02:36 -04:00
parent 444b9e26db
commit a4f26e9006
@@ -22,7 +22,9 @@
field: 'text',
direction: 'asc',
func: function(a, b) {
return a.text.localeCompare(b.text, undefined, {numeric: true, sensitivity: 'base'});
const numA = parseInt(a.text, 10);
const numB = parseInt(b.text, 10);
return numA - numB;
}
}]
});