Support » Plugin: TablePress » what if not pure number

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This is a bit tricky, because the + and (even more likely) the space character between the + and the number change the format of that column to text strings, which are sorted differently than numbers.
    You could maybe try to force a formatted number here. For that, please add this to the “Custom Commands” text field on the table’s “Edit” screen:

    "columnDefs": [ { "type": "num-fmt", "targets": [ 2, 4 ] } ]
    

    This changes the format of the third and fifth columns (counting starts with 0).

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.