[Plugin: WP-Table Reloaded] Sorting Currency Columns
-
Hello again Tobias – you’re looking well ;0
I have a currency column which is sorting as text (eg $1, $100, $2, $200). I have tried injecting the"aoColumns": [null, null, null, { "sType": "numeric" }
code & also{ "sSortDataType": "dom-text", "sType": "numeric" }
but it does a strange thing sorting the first row. I suspect it needs a plugin but I’m not sure how to implement this with your wp-Table-Reloaded… eg https://datatables.net/plug-ins/sorting#how_to_type
If a demo helps have a look at https://ibooknewzealand.com/category/activities/
(although I might have to take out the above code to get a working table before you look at it)
Kind Regards, Joan.
- The topic ‘[Plugin: WP-Table Reloaded] Sorting Currency Columns’ is closed to new replies.