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/title-numeric.min.mjs

2 lines
246 B
JavaScript

/*! © SpryMedia Ltd - datatables.net/license */
import $ from"jquery";import DataTable from"datatables.net";DataTable.ext.order["title-numeric-pre"]=function(t){t=t.match(/title="*(-?[0-9\.]+)/)[1];return parseFloat(t)};export default DataTable;