Title: Sorting don´t work
Last modified: August 21, 2016

---

# Sorting don´t work

 *  Resolved [Larenholtz](https://wordpress.org/support/users/larenholtz/)
 * (@larenholtz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/sorting-dont-work/)
 * My ambition is to be able to sort every column, but the script dosen´t work. 
   As I understand I have to have a script that defines the “default order”.
 * How to do.
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/sorting-dont-work/#post-4718361)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * 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
 *  Thread Starter [Larenholtz](https://wordpress.org/support/users/larenholtz/)
 * (@larenholtz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/sorting-dont-work/#post-4718364)
 * Thanks for such a quick reply.
 * It is in swedish, but you will understand I hope. Check the third column with
   the biggest numbers. First when you have uploaded the page, you will have one
   order which is correct. But when I sort it, I don´t get it in correct order.
 * [http://www.sokkonsulterna.se/test-seobolag/](http://www.sokkonsulterna.se/test-seobolag/)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/sorting-dont-work/#post-4718369)
 * Hi,
 * thanks for the link! The reason for this problem is that you are using a space””
   as a thousand separator in the numbers. This turns those numbers into text strings,
   which are sorted differently.
    To change this, you can use the Sorting Extension
   from [http://tablepress.org/extensions/datatables-sorting-plugins/](http://tablepress.org/extensions/datatables-sorting-plugins/)
 * Regards,
    Tobias
 *  Thread Starter [Larenholtz](https://wordpress.org/support/users/larenholtz/)
 * (@larenholtz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/sorting-dont-work/#post-4718441)
 * Perfekt. Thank´s.
    One more question. How to make a number that is below 0. -
   4678 for example to be sorter below 0 in a table.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/sorting-dont-work/#post-4718452)
 * Hi,
 * you will need to make sure to use the proper minus symbol `-` from the keyboard,
   and not the one that you are using now (which is `−`).
    They look very similar
   but are not the same.
 * Regards,
    Tobias

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

The topic ‘Sorting don´t work’ 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/)

## Tags

 * [sort](https://wordpress.org/support/topic-tag/sort/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/sorting-dont-work/#post-4718452)
 * Status: resolved