JSFiddle - React, Tailwind, and code Playground
HTML
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//cdn.datatables.net/1.10.4/js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" href="//cdn.datatables.net/1.10.4/css/jquery.dataTables.min.css">
<body>
<div>
<table id="example" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th>Name</th>
<th>Age</th>
<th>Salary</th>
</tr>
</thead>
<tbody>
<tr>
<td>Tiger Nixon</td>
<td>40</td>
<td>$320</td>
</tr>
<tr>
<td>Garrett Winters</td>
<td>40</td>
<td>$170</td>
</tr>
<tr>
<td>Ashton Cox</td>
<td>40</td>
<td>$86</td>
</tr>
<tr>
<td>Cedric Kelly</td>
<td>22</td>
<td>$433</td>
</tr>
<tr>
<td>Airi Satou</td>
<td>33</td>
<td>$162</td>
</tr>
</tbody>
</table>
</div>
</body>
JavaScript
$(document).ready(function() {
$('#example').DataTable({
filter:false,
columnDefs: [
{
orderData: [[1, 'asc'], [2, 'desc']]//sort by age then by salary
}
]
});
});