How to re-initialise data-sort on jQuery DataTables? <p>I am using jQuery Datatables in my project and I have made "custom value" sorting available on a column by using the attribute <code>data-sort</code> as described here: <a href="https://datatables.net/examples/advanced_init/html5-data-attributes.html" rel="nofollow">https://datatables.net/examples/advanced_init/html5-data-attributes.html</a></p> <p>Works fine. But now I am using Javascript/jQuery to update the values of these attributes, and the dataTable doesn't take into account the new values, it still sorts using the original values.</p> <p>Update is done on the attribute directly as such:</p> <pre><code>$('td#myColumnId').attr('data-order', newValue); </code></pre> <p>How can I force my dataTable to re-initialise my custom sort values?</p> <p>So far I have tried <code>.draw()</code> and <code>.dataTable()</code> but unfortunately that is not working.</p> <p>I'm looking forward to a possible solution.</p>