forked from TFMM/silent-auction
fix: restore natural sorting for vehicles by bidder assigned number
This commit is contained in:
@@ -39,14 +39,7 @@
|
||||
dropdownParent: 'body',
|
||||
controlInput: '<input>',
|
||||
maxOptions: null,
|
||||
sortField: [{
|
||||
field: 'text',
|
||||
direction: 'asc',
|
||||
func: function(a, b) {
|
||||
// Natural sort for bidder/car numbers
|
||||
return a.text.localeCompare(b.text, undefined, {numeric: true, sensitivity: 'base'});
|
||||
}
|
||||
}]
|
||||
sortField: [] // Respect server-side order
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user