Urgent help need with JS datatable logic when data-sort="" is empty for some rows

Urgent help need with JS datatable logic when data-sort="" is empty for some rows

moorthy28sepmoorthy28sep Posts: 3Questions: 1Answers: 0

Requirement: In the 2nd column when the dates are empty, upon sorting either asc / desc, the rows with empty dates should not come on the top of the table. Only dates with actual dates should sorted correctly. Empty date rows or I hardcoded with data-sort="01-Jan-3000". Basically empty rows should not come to the top of the table either asc / desc order.
Empty Cells: Date Empty cells or data-sort=“01-Jan-3000” should always be at the bottom of the list.
Behavior Consistency: This behavior should be consistent across ascending and descending sorts.

https://jsfiddle.net/moorthy28sep/cwmoxnLt/2/

Replies

Sign In or Register to comment.