Text columns don't sort

Text columns don't sort

jack21jack21 Posts: 6Questions: 3Answers: 0

Happy new year!

I have a table where all numerical columns sort correctly. I have other columns that use a render function with if (type === 'sort'), and those work as well.

However, columns with text and with no explicit render function don't sort when clicked on--nothing happens. I'd expect them to sort alphabetically, which is what I'd like.

Any ideas? Thanks

Answers

  • jack21jack21 Posts: 6Questions: 3Answers: 0

    I resolved this. I was applying $.fn.dataTable.absoluteOrderNumber() to all columns. I needed to update that to $.fn.dataTable.absoluteOrder() for the text columns

Sign In or Register to comment.