How to apply filters in a table in LibreOffice Calc?

How to apply filters in a table in LibreOffice Calc? Applying a filter can help in two ways - filtering a table allows you to sort the rows of the table in ascending and descending order. Also, by applying a filter you can include or exclude certain rows on basis of keywords in the column cell's value.