display sorting already pre-sorted
-
hi-
i installed tablepress plus these 2 extensions:
1. tablepress-datatables-sorting-plugins
2. tablepress-table-row-orderI have a table with 2 columns (A and B). Column A has names and column B has numbers that go from 0 to 999,999,999 (e.g. 1,256,145 or 256,254 or 456). i was to sort by column B by descending order.
with ” tablepress-datatables-sorting-plugins” extension i can enable sort ni the edit page and add this line for users to sort themselves:
"aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ]
it works but i really want to display the table in the page already sorted without users having to sort themselves. i installed “tablepress-table-row-order” extension and use
[table id=1 row_order="sort" row_order_sort_column="B" row_order_sort_direction="DESC" /]
in the actual page but no luck .. any help will be greatly appreciate it.thanks.
- The topic ‘display sorting already pre-sorted’ is closed to new replies.