Can I sort rows absolutely by their id?
Can I sort rows absolutely by their id?
aav
Posts: 11Questions: 2Answers: 0
Hi, looking at this page, https://datatables.net/blog/2016-12-22 - only shows how to absolutely position rows based on strings. Can I select all <tr>
with a certain id and put them at the bottom? Thanks
This discussion has been closed.
Answers
Are you talking about an id in the data or a HTML id?
html id so like
<tr id="absolute"> ...</tr>
A HTML tag id has to be unique on the page.
how about by class then?
Alternatively, is it possible to take the date column, and put any dates in the past at the bottom absolutely?
The last one you posted is probably the easiest. Have a look at this blog post.
Allan
Sorry, this is the page I referenced in my original question - it has options for strings and numbers, but no explanation for a date
Doh - sorry. Yes, the method described in that blog post would need to be extended to include support for dates. It could be merged with the Moment date / time plug-in potentially.
Allan