Is that possible to create a table with DB, able to do one click sorting ...

for example :
The page with ton of Data like excel (column), when user click the column it able to sort it automatically ?

thanks me noob