diff options
Diffstat (limited to 'http/_res/tablesort.number.min.js')
-rw-r--r-- | http/_res/tablesort.number.min.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/http/_res/tablesort.number.min.js b/http/_res/tablesort.number.min.js new file mode 100644 index 0000000..db1fc68 --- /dev/null +++ b/http/_res/tablesort.number.min.js @@ -0,0 +1,5 @@ +/*! + * tablesort v5.0.1 (2017-05-27) + * http://tristen.ca/tablesort/demo/ + * Copyright (c) 2017 ; Licensed MIT +*/!function(){var a=function(a){return a.replace(/[^\-?0-9.]/g,"")},b=function(a,b){return a=parseFloat(a),b=parseFloat(b),a=isNaN(a)?0:a,b=isNaN(b)?0:b,a-b};Tablesort.extend("number",function(a){return a.match(/^[-+]?[£\x24Û¢´€]?\d+\s*([,\.]\d{0,2})/)||a.match(/^[-+]?\d+\s*([,\.]\d{0,2})?[£\x24Û¢´€]/)||a.match(/^[-+]?(\d)*-?([,\.]){0,1}-?(\d)+([E,e][\-+][\d]+)?%?$/)},function(c,d){return c=a(c),d=a(d),b(d,c)})}();
\ No newline at end of file |