Read HTML to data and preserve data-sort attribute.
Read HTML to data and preserve data-sort attribute.
![JeffSinclair](https://secure.gravatar.com/avatar/5c4c10252a5e112a03e50f47d54eed63/?default=https%3A%2F%2Fvanillicon.com%2F5c4c10252a5e112a03e50f47d54eed63_200.png&rating=g&size=120)
Currently I use the data-sort attribute successfully in places.
In other cases we read into an object,
based on this example : https://datatables.net/examples/advanced_init/object_dom_read.html
However I have been unable to get the data-sort attibute to work once the colomn data object is used.
This discussion has been closed.
Replies
It is a bit awkward, and perhaps the documentation on it isn't quite right, but it is possible:
Example: https://live.datatables.net/wobicaro/1/edit
Allan