summaryrefslogtreecommitdiff
path: root/http/res/tablesort.dotsep.min.js
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-07-06 00:18:28 +0200
committeremkael <emkael@tlen.pl>2017-07-06 00:18:28 +0200
commit927c8dfa1142fb1edc38eaf50d932be8cecccb02 (patch)
tree91381084d6966931188b8bde2c75df87c53d692a /http/res/tablesort.dotsep.min.js
parent3bef06bedb9b2dad691356863b7c227ad8ecbd67 (diff)
Tools for calculating group ratings
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