Title: Sorting doesn&#039;t recognize
Last modified: August 20, 2016

---

# Sorting doesn't recognize

 *  Resolved [rytrom](https://wordpress.org/support/users/rytrom/)
 * (@rytrom)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/sorting-doesnt-recognize/)
 * [http://www.ereztech.com/products/product-list/](http://www.ereztech.com/products/product-list/)–
   the first column doesn’t treat embedded HTML correctly and sorts the link-containing
   values to the top. Somehow other columns have no such a problem.
 * Advice?
 * [http://wordpress.org/extend/plugins/wp-table-reloaded/](http://wordpress.org/extend/plugins/wp-table-reloaded/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/sorting-doesnt-recognize/#post-3175001)
 * Hi,
 * Hi,
 * the reason for this probably is that the DataTables JavaScript library (which
   is used for the sorting functionality), recognized the columns as strings. You
   could try to force these to HTML, so that the visible content should be used 
   for sorting. To do that, please try adding
 *     ```
       "aoColumnDefs": [ { "sType": "html", "aTargets": [ "_all" ] } ]
       ```
   
 * to the “Custom Commands” textfield in the “DataTables JavaScript features” section
   on the “Edit” screen of your table.
 * Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Sorting doesn't recognize’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-table-reloaded_f7dcd3.svg)
 * [WP-Table Reloaded](https://wordpress.org/plugins/wp-table-reloaded/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-table-reloaded/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-table-reloaded/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-table-reloaded/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-table-reloaded/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-table-reloaded/reviews/)

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