Sorting case insensitive
Sorting case insensitive
var groupColumn = 4;
$("#DTable").dataTable({
"pageLength": 30,
autoWidth: false,
columnDefs: [
{ type: 'natural-nohtml', targets: '0' },
{ type: 'natural-ci', targets: '1' },
{ visible: false, targets: groupColumn }
],
etc
I have DataTables/sorting/natural.js
But it isn't doing a case insensitive sort on column 1 so how can I do a case insensitive sort please?
Answers
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin