How To Sort And Paginate Tabular Data With Yii2 ?

Documentation is empty at this moment. Do anyone have any tutorials or code examples for sorting and paginating tabular data ?

If I have some simple table with few columns like id, first name, last name, address. How can I allow to users to sort data by id or first name in both ASC and DESC order ? I do not want to use any built in widget, just plain table.

And how to paginate ?

Thanks

I don’t know, have you found those examples - for pagination and for sorting.. I think this is good examples and you may start with them.