Support » Plugin: WP-Table Reloaded » Sorting numbers

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question.

    The problem here are the “–” entries in that column. Due to those, the JavaScript library that performs the sorting thinks that the column contains strings, and not numbers. And strings are sorted differently than numbers, and this leads to the behavior that you currently experience.
    If just change the “–” entries to be empty, the sorting should work as expected on that column.

    Regards,
    Tobias

    That makes a lot of sense and it works perfectly now. Thanks to much Tobias!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    awesome! Great to hear that! 🙂
    Always nice, when fixes are so easy!

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sorting numbers’ is closed to new replies.