Hi,
thanks for your post, and sorry for the trouble.
The cause for this is the mixed data type, with , and % in that column. This causes the JavaScript code to sort this as text and not numbers.
Can you maybe write the numbers with a . instead of a ,? That should be the quickest solution here.
Regards,
Tobias
Back-end sorting of the table columns stopped working for me, after I upgraded WordPress to version 5.3
Hi lafortuna,
first, please try to re-install WordPress and TablePress (to be sure that all files are correct). Sometimes, during the update not all files are written to the server’s disk properly.
If this still happens, please try again after temporarily deactivating all other plugins and after switching to a WordPress default theme like Twenty Twenty. Maybe something else is interfering here.
Regards,
Tobias
P.S.: Next time, please open a new thread for your problem, instead of just writing into an existing one, thanks 🙂
Tobia,
you were right. The theme I am using, Imprint, does not function very well will WordPress 5.3.
Hi,
thanks for checking on this!
Best wishes,
Tobias
Hello Tobias
Thank you for your answer
I replaced the , by ., but it doesn’t solve the problem.
There are no problems with sorting others columns (which have “,”), and for this last column it sorts well exception certains rows which are not well sorted in this column.
Thanks for your help
Quentin
-
This reply was modified 6 years, 3 months ago by
qmolinie.
Hi Quentin,
that’s weird… Maybe we need to force the correct data type then. Please add this to the “Custom Commands” text field on the “Edit” screen of the table:
"columnDefs": [ { "type": "html", "targets": 4 } ]
(You might have to flush the cache of the Autoptimize plugin so that this is properly applied.)
Regards,
Tobias
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!