enchanced table

I’m building some ABMs, I have lots of lists,
and I would like to show the records with column names where you can order the
list by ascending or descending order by clicking in the columns, to add filtres,
in example, age > 18 and age < 24 and name contains “juanjo”,
etc.

I can do it by my own, but I would like to know if
there is already something build in rails that I can reuse or some open source
projects where I can study the code

Thank you