fix: force bidder number numeric sort in tomselect
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user