Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

245
Views
DataTable conditional columnDefs orderData

I would like to do something like :

columnDefs: [
     if(sorting direction of the target (column 0 here) is 'asc'){
         { orderData: [14,13,12,0],    targets: 0 }
     }
     else{
         { orderData: [18,13,12,0],    targets: 0 }
     }
],

In other words, the multicolumns used in the sorting (orderData) are different depending on whether it is ascending or descending.

Hope to be clear,

Thanks for your help !

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!