Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question.

    Unfortunately, your link does not work for me, as it does not seem to be a published page and thus is only available to users that are logged in.
    Can you create a test page that is publicly available?

    Regards,
    Tobias

    Thread Starter philliposophy

    (@philliposophy)

    Tobias, certainly. The link is now published publicly.
    Sorry about that.

    Phil

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Phil,

    thanks for that, now I was able to take a look at your site.

    The problem is coming from the web scraper plugin. It is not just printing out that number, but also a surrounding HTML comment, like this:

    <!--
     Start of web scrap dump (created by wp-web-scraper)
     Source URL: https://groups.yahoo.com/group/avwcgroup/
     CSS Selector: li:eq(12)
    -->
    229
    <!--End of web scrap dump-->

    This unfortunately messes up the DataTables JavaScript library (which does the sorting). DataTables expects a plain number, but due to the HTML comment, the cell content is actually a string. And strings are sorted differently, compared to numbers.

    So, if somehow possible (worst case: changes in the source code), you should modify the web scraper plugin to only print out the number, without any surrounding string characters.

    Regards,
    Tobias

    Thread Starter philliposophy

    (@philliposophy)

    Thanks Tobias! Extremely helpful as always.

    Thread Starter philliposophy

    (@philliposophy)

    Tobias, I messed with the source code and it’s fixed.

    ??

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Phil,

    great to hear that this worked! Thanks for the confirmation!

    Best wishes,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Web scraper-generated numbers screwing up my sort?’ is closed to new replies.