[Solved] Set a default sort column in Sortable
According to the documentation, you can do this on page load. $(document).ready(function(){ $(“th.sort”).each(function(){ sorttable.innerSortFunction.apply(this, []); }) }) th, td { padding: 3px } <script src=”https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js”></script> <script src=”https://www.kryogenix.org/code/browser/sorttable/sorttable.js”></script> <table class=”sortable”> <thead> <tr> <th>Name</th> <th class=”sort”>Salary</th> <th>Extension</th> <th>Start date</th> <th>Start date (American)</th> </tr> </thead> <tbody> <tr> <td>Bloggs, Fred</td> <td>$12000.00</td> <td>1353</td> <td>18/08/2003</td> <td>08/18/2003</td> </tr> <tr> <td>Turvey, Kevin</td> <td>$191200.00</td> … Read more