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.
2 lines
1.9 KiB
JavaScript
2 lines
1.9 KiB
JavaScript
2 years ago
|
/*! © SpryMedia Ltd, Jim Palmer, Michael Buehler, Mike Grier, Clint Priest, Kyle Adams, guillermo - datatables.net/license */
|
||
|
!function(r){"function"==typeof define&&define.amd?define(["datatables.net"],function(e){return r(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e=e||window,t.fn.dataTable||require("datatables.net")(e,t),r(t,0,e.document)}:r(jQuery,window,document)}(function(e,t,r,n){"use strict";e=e.fn.dataTable;function a(e,t,r){var n=/(^-?[0-9]+(\.?[0-9]*)[df]?e?[0-9]?%?$|^0x[0-9a-f]+$|[0-9]+)/gi,a=/(^[ ]*|[ ]*$)/g,o=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,i=/^0x[0-9a-f]+$/i,c=/^0/,u=/(<([^>]+)>)/gi,e=e.toString().replace(a,"")||"",t=t.toString().replace(a,"")||"",l=(r||(e=e.replace(u,""),t=t.replace(u,"")),e.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0")),d=t.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),a=parseInt(e.match(i),10)||1!==l.length&&e.match(o)&&Date.parse(e),r=parseInt(t.match(i),10)||a&&t.match(o)&&Date.parse(t)||null;if(r){if(a<r)return-1;if(r<a)return 1}for(var f=0,s=Math.max(l.length,d.length);f<s;f++){var p=!(l[f]||"").match(c)&&parseFloat(l[f])||l[f]||0,w=!(d[f]||"").match(c)&&parseFloat(d[f])||d[f]||0;if(isNaN(p)!==isNaN(w))return isNaN(p)?1:-1;if(typeof p!=typeof w&&(p+="",w+=""),p<w)return-1;if(w<p)return 1}return 0}return e.ext.order["natural-asc"]=function(e,t){return a(e,t,!0)},e.ext.order["natural-desc"]=function(e,t){return-1*a(e,t,!0)},e.ext.order["natural-nohtml-asc"]=function(e,t){return a(e,t,!1)},e.ext.order["natural-nohtml-asc"]=function(e,t){return-1*a(e,t,!1)},e.ext.order["natural-ci-asc"]=function(e,t){return a(e=e.toString().toLowerCase(),t=t.toString().toLowerCase(),!0)},e.ext.order["natural-ci-asc"]=function(e,t){return-1*a(e=e.toString().toLowerCase(),t=t.toString().toLowerCase(),!0)},e});
|