Title: Tablepress
Last modified: August 30, 2016

---

# Tablepress

 *  [Vexet](https://wordpress.org/support/users/vexet/)
 * (@vexet)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/tablepress-26/)
 * Okay guys so I have a long table with graphic cards, their name + capacity and
   speed. But I found out that there is a bug with my capacity and speed table, 
   it only sorts with the first number.
    If the capacity is 2 GB it will read it
   as bigger than 10 GB because the first number 2 is bigger than 1. I am really
   struggling with this problem please help me!
 * Also I tried the Tablepress Extension: Datatables sorting plugins, but it didn’t
   help, I installed it but didn’t do anything with it.

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

 *  Thread Starter [Vexet](https://wordpress.org/support/users/vexet/)
 * (@vexet)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/tablepress-26/#post-6579333)
 * bumb
 *  [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/tablepress-26/#post-6579430)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * This is indeed caused by the data type. “2 GB” and “10 GB” will be treated as
   strings and not as number, and those are sorted differently.
 * With the DataTables Sorting Plugins Extension, you are on the right track. You
   will just have to add a “Custom Command” on the table’s “Edit” screen similar
   to the example on the Extension’s web page.
 * Regards,
    Tobias
 *  Thread Starter [Vexet](https://wordpress.org/support/users/vexet/)
 * (@vexet)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/tablepress-26/#post-6579533)
 * Hi thanks for the reply. I see the custom command spot, but what do I post in
   there in order to make it appear normally?
 * [https://gyazo.com/41b4cac747297db3fdfd3039d35f9078](https://gyazo.com/41b4cac747297db3fdfd3039d35f9078)
 *  [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/tablepress-26/#post-6579548)
 * Hi,
 * please try this:
 *     ```
       "columnDefs": [ { "type": "formatted-num", "targets": [ 4 ] } ]
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [Vexet](https://wordpress.org/support/users/vexet/)
 * (@vexet)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/tablepress-26/#post-6579593)
 * Hi Tobias thank you for the replies. It fixed the “GB” menu, but it is still 
   a problem here: [https://gyazo.com/a350fbb9174670c015c9e75058170b16](https://gyazo.com/a350fbb9174670c015c9e75058170b16)
 *  [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/tablepress-26/#post-6579620)
 * Hi,
 * you can use the same approach there, just extend the `"targets"` list with the
   correct columns number (counting starts with 0!).
 * Regards,
    Tobias

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

The topic ‘Tablepress’ is closed to new replies.

## Tags

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

 * 6 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/tablepress-26/#post-6579620)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
