Initially, users can utilize all fields for sorting when the sorting button is accessible. Nevertheless, you can limit the fields that users can use for sorting. To do this, proceed to:
Portal Tables
Choose a table from the list
Layout section
The Hide sort button toggle should be turned off.
Add fields in Sort Fields on Portal