Prevent column sorting for all columns in a table

Hello again Knack Community,

I am looking for some code to turn off column sorting for all columns in a table. 

Any ideas?

Thanks!

Abhinandan

Here is the code i used to remove the header sort for tables. First the code then a screenshot of the table for reference. Between the screen shot and code you should be able to figure it out.



// TOP TEN STUDENTS LIST TABLE HEADER REMOVE SO IT CANT SORT BY USER
// TOP TEN STUDENTS LIST TABLE HEADER REMOVE SO IT CANT SORT BY USER

$(document).on('knack-view-render.view_929', function(event, view, data) {
var RowCount = "0" ;
$('#view_929 table').find('tr').each(function(){ $(this).find('th').eq(-4).before('<th style=\"min-width: 75px; width: 100px;\">Top 10</th>'); $(this).find('td').eq(-4).before('<td style=\"text-align: center;\">' + RowCount + '</td>'); RowCount++; });
$('#view_929 th:eq(1)').text('Students');
$('#view_929 th:eq(2)').text('School Name');
$('#view_929 th:eq(3)').text('School Owner');
$('#view_929 th:eq(4)').text('Region');

});


![](upload://sJKgK36nbWVKVSeTiKMjbOPm89S.png)

Did you figure this out? I can give you the solution if not.