Make tables sortable, provided they have proper <thead> and <tbody> sections