Pagination is used to display the large list of records in multiple pages form. This makes easier to access records.
You can make traversing more easier by add sorting on the table.
The table list gets arranged according to the clicked header.
In this tutorial, I show how you can implement pagination sorting on header click in CodeIgniter.