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>86</td>
            </tr>
            <tr>
                <td>Ashton Cox</td>
                <td>40</td>
                <td>170</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: 
                    [
                        {
                            targets: [1],//when sorting age column
                            orderData: [1,2] //sort by age then by salary sameDirection 
                        } 
            
                        //What i'm trying to do
                        /*{
                            targets: [1],//when sorting age column
                            orderData: [[1,'normal'],[2,'reverse']] 
                        } */ // When age column is sorted asc ->sort by age asc then by salary desc  
                            // When age column is sorted desc ->sort by age desc then by salary asc
                    ]        
    });
});