Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82756

Date sorting with multiple dates in the column cell?

$
0
0

Example code: https://jsfiddle.net/mrbachchoi/9rxfqv08/1/
Debugger info: https://debug.datatables.net/ahugih

No error messages

I am trying to make my table sortable by date.
However, certain events that my table details occur over a span of days causing them to be separated by a dash.
When I tried the native sorting the table grouped the (date - date) cells at the bottom, without sorting them into the correct spots.
To circumvent this I attempted to utilize Orthogonal Data outlined here: https://datatables.net/examples/ajax/orthogonal-data .
Though I was able to get it to compare the dates based on the sort data I still get the same result once adding the end date for the multi day events.
Is there any way to circumvent this?
Thank you for you help!

Best,
Jonathan


Viewing all articles
Browse latest Browse all 82756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>