Title: [Plugin: WP-Table Reloaded] Sorting by Number?
Last modified: August 19, 2016

---

# [Plugin: WP-Table Reloaded] Sorting by Number?

 *  Resolved [OtaQ](https://wordpress.org/support/users/otaq/)
 * (@otaq)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-sorting-by-number/)
 * Next problem 🙂
 * I got a row called “RATING” and the numbers are like “1, 2, 3, 4, 5, 6, 7, 8,
   9, 10”
 * If I click on the sorting (the “title” RATING at the top), 9 is on the top !???
   so… I don´t understand this.. the 10 of course should be on top…

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

 *  [flamenco](https://wordpress.org/support/users/flamenco/)
 * (@flamenco)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-sorting-by-number/#post-1955382)
 * Hi,
    Ah, you’re not a programmer, then, otherwise there would be no “of course”
   in there. 🙂 At first, I thought you were simply running into text vs. number
   sorting, a very common programming problem. When using a text sort, “9” may be
   higher than “10” because of the first digit.
 * But I tested the sorting in mine, and I cannot break it! It works great with 
   any number I’m using.
 * And I assume you actually meant sorting on a column rather than a row, as it 
   only sorts on columns.
 * So I don’t know. Maybe if you give a link someone can help you further.
 *  Thread Starter [OtaQ](https://wordpress.org/support/users/otaq/)
 * (@otaq)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-sorting-by-number/#post-1955428)
 * Column is correct 🙂 Sorry for my bad english!
 *  [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-sorting-by-number/#post-1955457)
 * Hi,
 * yes, this likely is a text vs. number sorting issue.
    Please provide the URL 
   to the page with the table.
 * Regards,
    Tobias
 *  Thread Starter [OtaQ](https://wordpress.org/support/users/otaq/)
 * (@otaq)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-sorting-by-number/#post-1955502)
 * I sent you a email with the link.
 *  [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-sorting-by-number/#post-1955506)
 * Hi,
 * just for reference for everybody:
    This was indeed a text/number sorting issue:
   German number values, which contain a `,` instead of a `.` caused DataTables 
   to treat the column as text, and thus the sorting was different. Changing all`,`
   to `.` in the column helped.
 * Best wishes,
    Tobias
 *  [mike1985](https://wordpress.org/support/users/mike1985/)
 * (@mike1985)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-sorting-by-number/#post-1955579)
 * Hey Tobias,
 * It’s Mike again 😉
 * I’m trying to fixe a sorting problem and I would like to add a plugin for natural
   sorting and currency sorting as founded on:
 * [http://datatables.net/plug-ins/sorting](http://datatables.net/plug-ins/sorting)
 * on the a Naturalsort algorithm bu Jim Palmer:
 * [http://www.overset.com/2008/09/01/javascript-natural-sort-algorithm-with-unicode-support/](http://www.overset.com/2008/09/01/javascript-natural-sort-algorithm-with-unicode-support/)
 * I’m not a programmer, but some copy-past work is no problem off course, so where
   do I have to put this codes, or do I have to make files for it and where do I
   have to store these??
 * Hope to hear from you!
 * Mike
 *  [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-sorting-by-number/#post-1955580)
 * Hi Mike,
 * I don’t have details on how to add that specific natural sort algorithm, and 
   unfortunately I’m not an expert with JavaScript, so I won’t be able to help with
   this.
    There is however some code from the past that you can use as a starting
   point. It is based on the DataTables website, to integrate different plugins 
   from there. You can find those files (basically, they are WordPress plugins) 
   at [http://tobias.baethge.com/download/plugins/additional/](http://tobias.baethge.com/download/plugins/additional/).
 * Regards,
    Tobias

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

The topic ‘[Plugin: WP-Table Reloaded] Sorting by Number?’ is closed to new replies.

 * 7 replies
 * 4 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-sorting-by-number/#post-1955580)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
