How to make php codeigniter codes to make feature to 'sort table' by user needs.
I have set the query in models on my final web project (https://github.com/HermesED/KharismaArt)
Models: Project_Model
Controller: admin(dir)/pengurus
View: Admins(dir)/pengurus_admin.php
Sorry for directing you guys to github, because Idk how to post codes here.
It works on sorting table field 'NIM' or ('Student_Id') in English. But that's "automatic" from coding. I want to make manual feature, like in sorting table things just like MS Excel
But I really don't have idea to create feature for sorting table in views.
Can anyone help? Or do you have some useful website for references?