• Resolved Paul Westerbeek

    (@paul-westerbeek)


    Hi everyone,

    after setting up my table presenting several different projects, I found out that the sorting functionality does not do what I want it to do. In my table the first column only contains the project number. All project numbers are numbered in the same fashion (i.e. PR-2013-00.05-001 to …-029). In some cells there’s an embedded link, whereby clicking on the project number takes you to the project page. Half of the projects don’t have a separate page, so here the cell contains just the project number.

    Now for my problem: When I sort on the first column, the project codes are no longer in the order I want them to be in: -001 to -029. TablePress orders them neatly in alphabetical order, but also takes the URL code into account, resulting in the project numbers with embedded link before the project numbers without a link. The code in these cells obviously starts with ‘a href=…’ which make it appear before the project codes that do not contain an embedded URL and start with ‘PR-2013-…’.

    It’s not really a problem at the moment, since the table is near 30 rows long, but as it grows larger, it may become more of a nuisance.

    Is there a way to make the plugin neglect the URL code (or anything between <…> for that matter, cause I expect bold or italic to give the same problem) and just take the cell contents that are shown in the actual table into account?

    Many thanks,

    Paul

    https://www.ads-software.com/extend/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Paul,

    thanks for your question, and sorry for the late answer. As I was on vacation, I didn’t have a chance to reply earlier.

    Actually, the sorting should recognize HTML code and just sort on the inner content of that. It might be possible, that the automatic detection is not working.
    To find out more, could you please post a link to the page with the table? Thanks!

    Regards,
    Tobias

    Thread Starter Paul Westerbeek

    (@paul-westerbeek)

    Hi Tobias,

    no problem. Thanks for taking the time to reply.

    When I tried to replicate the bug this morning, somehow I wasn’t able to. Everything seems to work fine just the way you described how the plugin should function.

    I have no clue what went wrong the first time, but I guess this bug is resolved, so I’ll mark it as resolved.

    Thanks again!

    Paul

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Paul,

    very nice! That’s great to hear! ??
    Might have been just a temporary glitch then.

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sorting column should not sort on URL code’ is closed to new replies.