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

105
Views
Manually Initiate Sort in Bootstrap 4 Datatable

I am having a problem with my bootstrap 4 datatable. The body columns are not aligning with the header until a sort is initiated. I also looked up some answers regarding this issue and most of them required that "display: block" be removed - which I did - and it did not solve my issue.

All I want to do is trigger the exact same kind of sort that occurs when I click on one of the headers, but I want to do this entirely in JavaScript.

I do not want to create a function that adjusts the rows as this did not affect the header when I implemented it.


EDIT: A similar problem with a minimal reproducible example can be found here: However, the solutions presented in this question do not solve my issue.

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!