I have to add a row to a jquery datatable dynamically. The problem is, that I have several cells with a data-sort
attribute. How can I add that attributes to the added rows?
<table>
<thead>
<tr>
<th>Name</th>
<th>Preis</th>
</tr>
</thead>
<tbody>
<tr>
<td data-sort="Max Müller">M. Müller</td>
<td data-sort="500">5,00 €</td>
</tr>
</tbody>
</table>
table.row.add([
'J. Wayne', // Here I need a data-sort="John Wayne"
'6,00 €', // Here I need a data-sort="600"
]).draw();