Title: Sorting not working properly
Last modified: January 30, 2018

---

# Sorting not working properly

 *  Resolved [longnha](https://wordpress.org/support/users/longnha/)
 * (@longnha)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/sorting-not-working-properly/)
 * Hi,
 * I have table with currency format like:
 * $1
    $5 $100 $1,000
 * The sorting is not working properly and show result like:
 * $1
    $1,000 $100 $5
 * Is that normal behavior please? Is there a way to fix it?
 * Thank you.

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/sorting-not-working-properly/#post-9917991)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Yes, this is the normal behavior, because you are sorting text and not plain 
   numbers here. To change this, I recommend to use the TablePress Extension from
   [https://tablepress.org/extensions/datatables-sorting-plugins/](https://tablepress.org/extensions/datatables-sorting-plugins/)
 * Regards,
    Tobias
 *  Thread Starter [longnha](https://wordpress.org/support/users/longnha/)
 * (@longnha)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/sorting-not-working-properly/#post-9918171)
 * Silly me, I do have sorting extension but it’s disabled! No wonder why it’s stop
   working!
 * Thank you very much for your response.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/sorting-not-working-properly/#post-9918215)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](https://wordpress.org/support/plugin/tablepress/reviews/#new-post)
   here in the plugin directory. Thanks!
 *  Thread Starter [longnha](https://wordpress.org/support/users/longnha/)
 * (@longnha)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/sorting-not-working-properly/#post-9918603)
 * Hi,
 * Sorry but I just notice that the sorting is not working for one table. The behavior
   is the same as before I enable the sorting the extension.
 * Do you have any idea anything would cause it please?
 * Thanks.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/sorting-not-working-properly/#post-9921189)
 * Hi,
 * 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 [longnha](https://wordpress.org/support/users/longnha/)
 * (@longnha)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/sorting-not-working-properly/#post-9921284)
 * Do you have email, or a form so I can send you the link please?
 * Thanks.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/sorting-not-working-properly/#post-9921296)
 * Hi,
 * my email address is in the main plugin file “tablepress.php”.
 * Regards,
    Tobias
 *  Thread Starter [longnha](https://wordpress.org/support/users/longnha/)
 * (@longnha)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/sorting-not-working-properly/#post-9921336)
 * Sent an email. Hope you can take a look on this.
 * Thank you.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/sorting-not-working-properly/#post-9921470)
 * Hi,
 * thanks for the link! From what I can see, you didn’t add the necessary “Custom
   Command”. Just activating the Extension is not enough here.
    See [https://tablepress.org/extensions/datatables-sorting-plugins/](https://tablepress.org/extensions/datatables-sorting-plugins/)
 * Regards,
    Tobias
 *  Thread Starter [longnha](https://wordpress.org/support/users/longnha/)
 * (@longnha)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/sorting-not-working-properly/#post-9921696)
 * Hi,
 * Thank you for the link. I follow the instruction and it now works as expected.
 * But on the table that is working, I’ve no Custom Commands for sorting, just ‘
   orderable’ command and it still works. So I’m kind of confused.
 * Anyway, now everything work fine, so thank you. 🙂
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/sorting-not-working-properly/#post-9921799)
 * Hi,
 * yes, sometimes the auto-detection for the sorting algorithm works, but sometimes
   it needs the command.
 * Regards,
    Tobias

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

The topic ‘Sorting not working properly’ 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/)

 * 11 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/sorting-not-working-properly/#post-9921799)
 * Status: resolved