Hidden sort issue
-
Hi Tobias,
I have used a hidden column (column 1) to sort the first column (column 0) by date, because column 0 sometimes has a single date, and other times a date range.
When you go to the page, it is sorted earliest (Aug 18) to latest (Jan 20). When you click the sort arrow for that first column, it sorts instead by date month without regard to year (so all January trials, sorted by Month then Day then Year). My desired outcome is that the trials are sorted either earliest to latest, or latest to earliest. (So Aug 2018 through Jan 2020, or Jan 2020 through Aug 2018).
My custom commands are:
“columnDefs”: [ { “orderData”: [ 1 ], “targets”: [ 0 ] }, { “visible”: false, “targets”: [ 1 ] }, { “orderable”: false, “targets”: [ 2, 3, 4, 9,10 ] } ]
If this can’t be done, it’s not that big a deal. ?? Love this plugin!
Kristi
The page I need help with: [log in to see the link]
- The topic ‘Hidden sort issue’ is closed to new replies.