Sorting case insensitive

Sorting case insensitive

plwplw Posts: 34Questions: 13Answers: 0

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

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    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

Sign In or Register to comment.