How to use filters and sort in GRID with ( 5 rows and 5 columns )?

Here is the scenario

A grid with 5 columns and 5 rows with sort and filter on each column, user can use filter and sort as per his need

Can you please help me with the above requirement