Remove default sorting of first column
Remove default sorting of first column
![Afroz Ali](https://secure.gravatar.com/avatar/ebca92a72aab28259d729c14a31604b6/?default=https%3A%2F%2Fvanillicon.com%2Febca92a72aab28259d729c14a31604b6_200.png&rating=g&size=120)
Hi guys,
I want to know how to remove default sorting(ordering) of first column for dataTable. Thanks in advance.
Thanks,
Ali
This discussion has been closed.
Hi guys,
I want to know how to remove default sorting(ordering) of first column for dataTable. Thanks in advance.
Thanks,
Ali
Answers
Have you tried to set https://datatables.net/reference/option/columns.orderable to false? Else you can try to change the initial sorting of the table using https://datatables.net/reference/option/order
Yep. as @islamelshobokshy ,
order
is the way to go, look at the first example on that page, it'll sort you out.Cheers,
Colin
Thank you guys for your valuable response.