When using the MainTable component with sortable and pagination, only the visible rows are sorted, not the whole data set.
Perhaps this is intended behaviour, but we've had users complain that they expect the whole data set to be sorted so if we don't want to change the current behaviour, we need an option to enable sorting of the whole data set.