Title: Numerical Sorting
Last modified: August 30, 2016

---

# Numerical Sorting

 *  Resolved [digiblogger](https://wordpress.org/support/users/digiblogger/)
 * (@digiblogger)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/numerical-sorting/)
 * 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/](https://wordpress.org/plugins/tablepress/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/numerical-sorting/#post-6813489)
 * 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.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/numerical-sorting/#post-6813489)
 * Status: resolved