My sorting resulted 11,3,45,7 on first digit but actually it should result as 3,7,11,45

My sorting resulted 11,3,45,7 on first digit but actually it should result as 3,7,11,45

Ishitarmsi22Ishitarmsi22 Posts: 1Questions: 1Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Answers

  • kthorngrenkthorngren Posts: 21,040Questions: 26Answers: 4,894
    edited August 17

    Well, its hard to say exactly without seeing a test case showing the issue.

    Your description suggests that the column is sorted as string data not as numeric data. This means that during type detection, at initialization, Datatables is finding non-numeric data in that column. Is every cell in the column a number?

    Maybe you have server side processing enabled, ie, serverSide set true. In this case the server script is sorting that field as a string instead of numeric.

    If you still need help then please post a test case replicating the error so we can help debug to offer suggestions.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

Sign In or Register to comment.