Datatables - how to ignore HTML tags for sorting?

Datatables - how to ignore HTML tags for sorting?

Noodles12Noodles12 Posts: 115Questions: 42Answers: 2

I need assistance sorting the first column. I have a column with a mix of alpha numeric values. I am ignoring the alpha values and only sorting by numeric values. However if a column has line breaks or

tags, it messes up the sorting. Please see the code here.

http://live.datatables.net/gezazaza/1/edit

In my table, for example, AA-EC-2019-82 AA-EC-2019-81 AA-EC-2019-71 should come after "AA-EC-2019-58" if sorted ascending. How can I achieve this? Thanks.

Answers

This discussion has been closed.