NOTE!

  • Click on the "Toggle parsed values" button to see the values as saved to the cache.
  • The small number the leading zeros parser subtracts from the cell value has a precision of 10 digits (1e-10). If you are using higher precision values, then copy this parser and increase the precision as needed.
  • Demo

    Number sort Natural text sort Plain text sort Leading Zeros parser
    001001001001
    1111
    2222
    10101010
    01010101
    1.011.011.011.01
    000001000001000001000001
    00001000010000100001
    020020020020
    0001000100010001
    3333
    10101010
    12121212
    15151515
    02020202
    5555
    25252525
    21212121

    Page Header

    <link href="css/theme.blue.css" rel="stylesheet">
    <script src="js/jquery.min.js"></script>
    <script src="js/jquery.tablesorter.js"></script>
    <script src="js/parser-leading-zeros.js"></script>

    Javascript

    
    	

    HTML