title: jquery-datatables multi-column sort direction
body: <p>Using jquery-datatables.</p>
  
  <p>Example: <a href="http://jsfiddle.net/b2fLye17/17/" rel="nofollow noreferrer">http://jsfiddle.net/b2fLye17/17/</a></p>
  
  <pre><code>$('#example').DataTable({
  
      filter:false,
      columnDefs: [
                      {
                          targets: [1],//when sorting age column
                          orderData: [1,2] //sort by age then by salary
                      } 
                  ]
  });
  </code></pre>
  
  <p>When you click the age column, The table sort by age ascending then by salary ascending.</p>
  
  <p>What would be my options to make it sort by age ascending then by salary descending ?</p>
  
  <p>Thanks !</p>
  
  <p>-------------------------- Edit 1 ---------------------</p>
  
  <p>Clarification : When the age column is sorted ascending it should sort by age ascending then by salary descending. When the age column is sorted descending it should sort by age descending then by salary ascending</p>
  
  <p>-------------------------- Edit 2 ---------------------</p>
  
  <p>A picture of the desired result<img src="https://i.stack.imgur.com/taqMU.png" alt="enter image description here"></p>