tablesorter/dist/js/parsers/parser-leading-zeros.min.js
Rob Garrison f006d8aa5f v2.28.6
2017-04-02 06:34:02 -05:00

2 lines
362 B
JavaScript

/*! Parser: leading zeros - updated 4/2/2017 (v2.28.6) */
!function(a){"use strict";var b=a.tablesorter;b.addParser({id:"leadingZeros",is:function(){return!1},format:function(a,c){var d=(a||"").replace(b.regex.nondigit,""),e=b.formatFloat(d,c),f=e.toString();return isNaN(e)||e!=d||d.length===f.length||(e-=1e-10*(a.length-f.length)),e},type:"number"})}(jQuery);