This version is old school.
Please find jQuery plugins on npm.
tableutils - A jQuery plugin for fixing the header, client-side and server-side pagination, sorting and searching the tables
by Kolge Pratik
A jQuery plugin for HTML tables. You can - Fix Table Headers with both Vertical and Horizontal Scrolling support, Add master CheckBox, Enable Sorting, Filtering, Client-side and Server-side Numeric, Alphabetic and Alphanumeric Pagination, Addition of new rows to the table, Deletion of exiting rows, Editing of existing rows.