• Resolved RienraG

    (@rienrag)


    Hello Tobias,

    I would like to thank you for your great plugin!! It’s really great.

    But I have a problem with sorting the columns. Not all of them are bad but only some. I’ve tried almost every advice which I found overe here. Went thru the documentation but now I’m completely lost.

    Here is the img of the table http://i59.tinypic.com/2iaty76.jpg

    I would put a link on the web but its not public yet but I could provide you access.

    Thx a lot!

    https://ww.wp.xz.cn/plugins/tablepress/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Most likely, you are having issues in the columns that have a #N/A entry, right?
    The reason for this is that those entries are not numbers, but text strings, and because of that the JS library that is used for the sorting will sort the entire column with a text string sorting algorithm, which is different to a number sorting algorithm.
    The only real chance to change this is to remove those entries with numbers, unfortunately.

    Regards,
    Tobias

    Thread Starter RienraG

    (@rienrag)

    Thx for answer Tobias,

    well It doesn’t have to be #N/A can be anything else. Do you have any suggestion what I could put there instead?

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    it should be a number, so that it can be sorted appropriately… Is that possible?

    Regards,
    Tobias

    Thread Starter RienraG

    (@rienrag)

    Hi,

    it could be zero but it would look stupid 🙂 In worst case I’m gonna put it there but would be much better to put sg like ?,-,N/A you know what I’m saying.

    Thx a lot m8!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    I understand that something else would be great, but the sorting algorithm then simply doesn’t know how to interpret ? or N/A.
    You would need to rewrite the sorting algorithm, or use the 0.

    Regards,
    Tobias

    Thread Starter RienraG

    (@rienrag)

    I see,

    thanks a lot Tobias for your great work!!!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Sorry that I didn’t have a better solution here.

    Best wishes,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Sorting problem’ is closed to new replies.