At the moment, my pagination works perfectly. I am using Pagination.js . I am looking to enhance it by also sending a text to the server which will be used to sort the dataset.