forked from TFMM/silent-auction
fix: use numeric localeCompare in tomselect for natural bidder sorting
This commit is contained in:
@@ -20,7 +20,10 @@
|
|||||||
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'});
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user