Title: Problem in sorting
Last modified: August 30, 2016

---

# Problem in sorting

 *  Resolved [cyrax-pdm](https://wordpress.org/support/users/cyrax-pdm/)
 * (@cyrax-pdm)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/problem-in-sorting/)
 * Hello there,
 * unfortunately we have a little issue with your plugin and were hoping that you
   can help us. As you can see in the following screenshots, which stay as an example
   of the issue, there is a problem in sorting the datasets from high to low (picture
   3: n/a is shown as the first and seems to be the highest value whereas it would
   be great if that would be listed at the bottom of the table) and the other way
   around from low to high (picture 2: 100 is displayed as the first and seems to
   be the lowest value in that case).
 * Please could you support us to solve this issue?
 * Many thanks ahead!
 * Link: ww.blaster-review.de/nerf-gun-uebersicht/
    picture 1: [http://www.bilder-upload.eu/upload/fef435-1444156077.jpg](http://www.bilder-upload.eu/upload/fef435-1444156077.jpg)
   picture 2: [http://www.bilder-upload.eu/upload/28b79d-1444156114.jpg](http://www.bilder-upload.eu/upload/28b79d-1444156114.jpg)
   picture 3: [http://www.bilder-upload.eu/upload/fb54cd-1444156140.jpg](http://www.bilder-upload.eu/upload/fb54cd-1444156140.jpg)
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/problem-in-sorting/#post-6620561)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * The reason for this problem are the “N/A” entries. Those are not numbers so that
   the DataTables JS library falls back to string sorting for this column.
 * Can you maybe change these “N/A” entries to numbers?
    If not, I suggest to take
   a look at adding an extra (hidden) column that contains numerical values only
   and that has sortable data. For hints on that, please see [https://wordpress.org/support/topic/sort-by-height?replies=4](https://wordpress.org/support/topic/sort-by-height?replies=4)
   which has a similar example.
 * Regards,
    Tobias
 *  Thread Starter [cyrax-pdm](https://wordpress.org/support/users/cyrax-pdm/)
 * (@cyrax-pdm)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/problem-in-sorting/#post-6620586)
 * We have changed “n/a” in “0”. The sorting works now.
 * Thanks for the quick help :o)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/problem-in-sorting/#post-6620646)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias

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

The topic ‘Problem in 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/)

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