Natural Sort
Natural Sort
![karlie](https://secure.gravatar.com/avatar/93a11198a25f446b8331f2cf2b094466/?default=https%3A%2F%2Fvanillicon.com%2F93a11198a25f446b8331f2cf2b094466_200.png&rating=g&size=120)
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