This button is configured per Portal Table. You can find this option by going to:
Portal Tables
Click on a portal table
Go to the User Actions section
Scroll down to find the Sort button toggle:
You can optionally select a specific set of fields that users can use to sort records.