Best way to create a sortable table from a structure field?

I have a structure field that contians a name, city and active/not-active.

My goal is to have them listed in those 3 columns (table?) in asc order but make them sortable by clicking on each of the columns title (th?).

Is there a way in Kirby to build this or is this only possible using js?

What would be the approach for this?

You would need a custom table component (so do something on the JS part of Kirby rather than on the PHP side).

1 Like

I use the brand new Table Field plugin from @Bogdan_Condorachi in combination with datatables in a project.

1 Like

Thanks! Didn’t know datatables… Exactly what I was looking for:)