Filter or sort a list of records showing on a form

I have a list within a form showing all records in a table. Is there a way to make this table sortable or filterable? I.e. if I click on Client make the records sorted by client, or filter so only show a certain client?

I am not sure if this sort of functionality is built in or am I required to write a macro to perform this task?

Hope that all makes sense!

Hello,

The Navigation toolbar provides filtering functions and the ability to view your data source as a table thus allowing sorting.

Data source:

For filtering see the documentation here → LibreOffice Base Guide

Chapter 4 - Forms has a section Searching and filtering in forms using the navigation bar. You can search for values in various fields or combinations.