"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dist/sorts/tablesort.dotsep.min.js" between
tablesort-5.2.1.tar.gz and tablesort-5.3.0.tar.gz

About: tablesort is a small and simple sorting component for HTML tables (written in JavaScript).

tablesort.dotsep.min.js  (tablesort-5.2.1):tablesort.dotsep.min.js  (tablesort-5.3.0)
/*! /*!
* tablesort v5.2.1 (2020-06-02) * tablesort v5.2.1 (2021-10-30)
* http://tristen.ca/tablesort/demo/ * http://tristen.ca/tablesort/demo/
* Copyright (c) 2020 ; Licensed MIT * Copyright (c) 2021 ; 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=parseIn t(a[e],10),d=parseInt(b[e],10),c!==d){if(c>d)return-1;if(c<d)return 1}return 0}) ; 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=parseIn t(a[e],10),d=parseInt(b[e],10),c!==d){if(c>d)return-1;if(c<d)return 1}return 0}) ;
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)