WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
Sorting Improperly (2 posts)

  1. Lonnie
    Member
    Posted 2 years ago #

    I've thoroughly read the website and the forums here and can't find a fix for the issue I'm having with sorting columns.

    1) Is there a way to use sorting, but not have any html code used be seen as sortable characters?

    2) Numbers do not sort correctly. Is there a fix for this?

    Example column sorts like this:

    1

    12

    3

    7

    8

    3 (this number is wrapped in an a href tag)

    Example page: http://www.mbbwaco.com/clients/portal/portfolio/campus-1/general-hospital-building/

    http://wordpress.org/extend/plugins/wp-table-reloaded/

  2. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    the problem with sorting is the data type: Numbers and text strings are sorted differently.
    Due to the HTML in one cell, the DataTables JavaScript library recognizes the column as strings, and due to that the sorting appears wrong.

    This would have to fixed with special commands for the DataTables library.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic