Support » Plugin: TablePress » Sorting – percentages is not working

  • Resolved grios


    Hi, I have a row that shows percentage gain or loss like so -22.05% or 22.40% But when sorting by ascending or descending it gets messed up and seems to ignore the – or + aspects so its not being sorted from biggest to loss to biggest gain. Any idea how to fix this? Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg



    thanks for your post, and sorry for the trouble.

    The reason for this are not actually the negative and positive numbers, but the percentage sign. Due to that, the cell content is interpreted as a string, and strings are sorted differently than numbers.
    However, you can change this by adding another sorting algorithm. Please see this TablePress Extension for that:


Viewing 1 replies (of 1 total)
  • The topic ‘Sorting – percentages is not working’ is closed to new replies.