The first image comes from http://materializecss.com/table.html that is how class responsive-table works.
Thats what happens to datatables with the class responsive-table from Materialize. The sorting works perfect. The only problem is that thead sometimes overlap tbody or thead have diferent height from tbody as seen in the images. Also sorting icons moves. Does someone has solved this problem? Thanks for your time.