Natural Sort

Natural Sort

karliekarlie 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?

Answers

  • kthorngrenkthorngren Posts: 21,449Questions: 26Answers: 4,975

    It seems like the problem is with the data that does not have decimal points. I would use columns.render to change to sort type to insert the decimal point at the proper spot. Take a look at the Orthogonal data doc for more info.

    Kevin

This discussion has been closed.