diff options
Diffstat (limited to 'public/javascripts/tablesort-5.2.1.number.min.js')
-rw-r--r-- | public/javascripts/tablesort-5.2.1.number.min.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/public/javascripts/tablesort-5.2.1.number.min.js b/public/javascripts/tablesort-5.2.1.number.min.js new file mode 100644 index 000000000..bf2cf3733 --- /dev/null +++ b/public/javascripts/tablesort-5.2.1.number.min.js @@ -0,0 +1,6 @@ +/*! + * tablesort v5.2.1 (2020-06-02) + * http://tristen.ca/tablesort/demo/ + * Copyright (c) 2020 ; 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 |