Need help with sorting
Need help with sorting
Noodles12
Posts: 107Questions: 38Answers: 2
My datatable is not sorting correctly. I think the problem is related to the decimal values as there is no consistency in them. What is the best way to sort this correctly? Do I need a special plugin for this? Any help/advice appreciated. Thanks in advance. Please see code below.
<link removed>
This question has an accepted answers - jump to answer
Answers
You could try the natural sorting plugin. Not sure if it will sort your data the way you want. If it doesn't work you can create your own sorting plugin or use orthogonal data to parse the string to allow it to sort the way you want.
Kevin
Natural sorting worked! Thanks.