It’s not possible to group records in the portal. However, there is an alternate way to group them. You will need to set this up using views.
💡Note
The view feature is available for any view type set within a portal table. If you have more than one view for a portal table, the records will show in separate tabs.