Sorting structure field by clicking on column

Is there a way to sort a structure field in the panel by clicking on any columns?

For example by clicking on Lastname and have the entries sorted by that.

Will I have to rework my structure fields in any way to make something like that work?