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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The reason for this problem is the “DNR” value in the last row of that column. That forces the sorting to be done as strings and not as numbers (which is done in a different way, thus the unexpected result).

    About the width: That’s because the data in the head row simply requires a certain minimum width. The browser can then not shrink the columns even further, so that the table spills out to the right.
    One possible solution for that could be to use “Horizontal scrolling”, by clicking the corresponding checkbox on the “Edit” screen of the table.

    Regards,
    Tobias

    Thread Starter ncurrier

    (@ncurrier)

    Tobias,

    I’ve read many of your forum posts and you might be the friendliest developer I’ve come across in the past 15 years. I’m the one causing you the trouble! Thank you for your help. I hadn’t considered that the text was not sortable with the numbers. Thank you for pointing it out.

    I think the horizontal scrolling option is a good solution and I’ll try it out. I’ve already shrunk the text to 13px and shortened the header titles and don’t think I should go much smaller.

    Cheers

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for the kind words!
    Good to hear that the hint about the text in that column and the “Horizontal Scrolling” will be helpful! ??

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘sorting bug? table width’ is closed to new replies.