You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Plugins/sorting/numString.min.mjs

2 lines
392 B
JavaScript

/*! © SpryMedia Ltd - datatables.net/license */
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;DataTable.numString=function(e){DataTable.ext.type.detect.unshift(function(t){return"string"==typeof t&&t.match(e)?"numString-"+e.source:null}),DataTable.ext.type.order["numString-"+e.source+"-pre"]=function(t){return+t.replace(/\D/g,"")}};export default DataTable;