the problem can be seen on the frozen column online demo: FrozenColumns
Move the horizontal scrollbar to the right, so that the last column is displayed.
Click on then header of the last column to sort: the horizontal scroll moves to the left.
Same problem appears with filtering a column in this scenario. In this last case, the filter is not always displayed correctly.