Add sorting of table columns. Split up HTML into partials.