• Resolved digiblogger

    (@digiblogger)


    Well, you know… sometimes you have numerical values like this:

    1
    2
    3
    4
    5
    6
    7
    8
    10
    11
    12

    22
    23
    25
    ..
    33
    35

    Tablepress actually sorts show filters like this:

    1
    10
    11
    12
    2
    22
    23
    25
    3
    33
    35
    4
    5
    6
    7
    8

    Is it possible to force tablepress to short numbers like the “written” ones.

    I can not do something like this:

    01
    02
    03
    11
    12
    14
    15
    16
    17

    https://wordpress.org/plugins/tablepress/

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The DataTables JS library that TablePress uses only falls back to that “wrong” sorting (which is string sorting), if any of the cells in that column is actually not a number. Otherwise, it will use the correct numerical sorting.

    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Numerical Sorting’ is closed to new replies.