I have html table inside a blade, filled with statistics data which comes from mysql database. I need to sort this data is descending order when field's header is clicked. if it's clicked again I have to sort it in ascending order. Also there are multiple fields. how should i go about this?
@davidbuchukuri we don't display a great deal of information, up to 50 events in peak times, but we use data tables to allow students to sort our events schedule any which way they want to.
@davidbuchukuri you do not need a "datatable" for this. Just use fetch js and load server fetched partial in an object. Have back end ORDER BY however you need. Of course you'll setup an addEventListener() to handle this.
Of course jquery would also work if you are already familiar with it.