Copy over styles on tbody before removing

Fixed bug where on sort, tbody classes were getting removed.