summaryrefslogtreecommitdiff
path: root/http/_res/tablesort.dotsep.min.js
blob: 4f5cd01cf65b7e5e2d9f7fd4b85fc90bb95a5aa0 (plain)
1
2
3
4
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});