Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

peffraimidis's avatar

Laravel - Inertia - Vue - Table and Column Sorting

Hello everyone I have a simple paginated index page and I populate the data inside a table What is the best practise to force sorting when clicking on a table heading cell? Could I also implement multiple sorting?

Thanks in advance

0 likes
1 reply
Sinnbeck's avatar

I've added this in inertia react. No multi column sorting though, but that should be pretty easy to add

I simple have each header trigger an inertia visit request, where I take the page ID and append the clicked header as a parameter

On the pagination, be sure to add ->withQueryString()

Please or to participate in this conversation.