Multiple columns sorting

Hello I have a table with 4 different columns.
One column has dates and another one has numbers

I would like to add a button (svg) besides the title of the column and when a user clicks on it, it sort the content (ascending/descending)

I can’t find a way to do it, Does someone have an easy way to solve this?