summaryrefslogtreecommitdiff
path: root/http/_res/tablesort.dotsep.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'http/_res/tablesort.dotsep.min.js')
-rw-r--r--http/_res/tablesort.dotsep.min.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/http/_res/tablesort.dotsep.min.js b/http/_res/tablesort.dotsep.min.js
new file mode 100644
index 0000000..4f5cd01
--- /dev/null
+++ b/http/_res/tablesort.dotsep.min.js
@@ -0,0 +1,5 @@
+/*!
+ * tablesort v5.0.1 (2017-05-27)
+ * http://tristen.ca/tablesort/demo/
+ * Copyright (c) 2017 ; Licensed MIT
+*/Tablesort.extend("dotsep",function(a){return/^(\d+\.)+\d+$/.test(a)},function(a,b){a=a.split("."),b=b.split(".");for(var c,d,e=0,f=a.length;e<f;e++)if(c=parseInt(a[e],10),d=parseInt(b[e],10),c!==d){if(c>d)return-1;if(c<d)return 1}return 0}); \ No newline at end of file