Title: Tablepress Sorting
Last modified: October 29, 2016

---

# Tablepress Sorting

 *  Resolved [rickaahz](https://wordpress.org/support/users/rickaahz/)
 * (@rickaahz)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/tablepress-sorting/)
 * Hi,
 * I’m using [WordPress Web Grabber](https://codecanyon.net/item/web-grabber-wordpress-html-scraping-plugin/16606336)
   in combination with Tablepress to make a comparison table of product prices.
 * The Web Grabber works with a shortcode – this shortcode is in the Tablepress ‘
   price’ column. At page load Web Grabber places the prices (AJAX load) in the 
   table. But after the prices are filled in, the column is not sortable (price 
   low to high).
 * The DataTables Javascript has been setup this way: “order”: [[ 1, ‘asc’ ]]
    Which
   is correct I assume because the table is sortable with normal prices (not shortcodes).
 * Is there any way to fix this?
 * Example found [here](http://www.macbook-kopen.nl/macbook-air-kopen/#macbook-air-11-inch).
 * Thanks in advance!
 * Rick

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/tablepress-sorting/#post-8371189)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * The problem likely is that these Shortcodes add more to the cells than just the
   price, for example extra HTML code. Also, they probably execute their JS code
   for the AJAX requests only after the sorting has been initialized. Due to that,
   the sorting algorithm simply doesn’t have access to the actual data that is to
   be sorted when it’s initialized 🙁
 * Unfortunately, I’m not aware of an easy workaround here, sorry.
 * Regards,
    Tobias

Viewing 1 replies (of 1 total)

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

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/tablepress-sorting/#post-8371189)
 * Status: resolved