Is there a way to create a freeze pane on both rows, columns and groups (within the selected rows) and keep the Sort function working?

Thanks in advance!