diff options
Diffstat (limited to 'http/res/tablesort.dotsep.min.js')
-rw-r--r-- | http/res/tablesort.dotsep.min.js | 5 |
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 |