Natural Sort
Natural Sort
karlie
Posts: 83Questions: 17Answers: 0
Hi I have enabled the natural sort plugin and defined it as follows in my column def
{ type: 'natural', targets: 11 },
However, it doesn't seem to be sorting my data as I would want. 10 follows 1 for instance.
How can I get my 'size' column sorted numerically ignoring the letter X (i.e. 8X6) and the letters MM?
This discussion has been closed.
Answers
It seems like the problem is with the data that does not have decimal points. I would use
columns.render
to change tosort
type to insert the decimal point at the proper spot. Take a look at the Orthogonal data doc for more info.Kevin