Title: Sorting Numbers in Column
Last modified: August 31, 2016

---

# Sorting Numbers in Column

 *  Resolved [dcwebcat](https://wordpress.org/support/users/dcwebcat/)
 * (@dcwebcat)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/sorting-numbers-in-column/)
 * Hello
 * For some reason our table is not sorting correctly by the “booth number” in the
   left column.
 * Any ideas on how I can get this to sort correctly? The names sort correctly (
   alphabetically).
 * Website: [http://meetings2.informs.org/wordpress/analytics2016/list-of-exhibitors/](http://meetings2.informs.org/wordpress/analytics2016/list-of-exhibitors/)
 * Many thanks!
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [dcwebcat](https://wordpress.org/support/users/dcwebcat/)
 * (@dcwebcat)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/sorting-numbers-in-column/#post-7055438)
 * Never mind. If I add a zero in front of a single digit, it will sort correctly.
 * Do we always needs to put the zero in front if there is a single digit or is 
   there a setting somewhere?
 * Thank you
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/sorting-numbers-in-column/#post-7055441)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * The problem here actually are the “Coming Soon” and the “40 & 41” entries. Those
   are not plain numbers, so that the DataTables JS library falls back to sorting
   the column as strings.
 * With the prepended 0, you’ll now get the desired result, even with string sorting.
   If you don’t want to add that 0 here, you’ll have to remove those “Coming Soon”
   and “40 & 41” entries, so that the column can be treated as numeric.
 * Regards,
    Tobias

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Sorting Numbers in Column’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/sorting-numbers-in-column/#post-7055441)
 * Status: resolved