The class data_table generates a HTML table from an array of datasets. This array must have 2 dimensions.
You can set the table to be orderable and so the headers appear as links that will make the table be sorted when they are clicked.
It also has an automatic next-previous functions which will show links at the bottom of the table when the count of data will be bigger than the count of shown datasets.
It is also easy to change the layout of the table and its data.
For detailed information about how to use, just download this class and its testfile and read the documentation at the beginning of the class source.